https://pulumi.com logo
#general
Title
# general
a

able-artist-91005

09/22/2023, 3:04 AM
The ssm.Parameter resource from the AWS package adds a random string suffix whenever I create a parameter. Does anyone know how to disable this? I couldn't find anything in the reference docs that mention the behaviour.
l

little-cartoon-10569

09/22/2023, 3:20 AM
You can set the name property of the Parameter.
This is common with almost all Pulumi resources: if you don't set the name, then Pulumi generates it from the 1st parameter to the constructor plus a random suffix.
a

able-artist-91005

09/22/2023, 3:21 AM
I did, but it still sets a random suffix
l

little-cartoon-10569

09/22/2023, 3:21 AM
Can you show the code?
a

able-artist-91005

09/22/2023, 3:22 AM
ok so I thought I did, but it was a different field.
thanks
l

little-cartoon-10569

09/22/2023, 3:23 AM
It can be a bit confusing that every constructor has a name parameter, and most resources have a name property.. and they're closely related but not the same...
a

able-artist-91005

09/22/2023, 3:24 AM
It can be a bit confusing that every constructor has a name parameter
🙃 yeah that's exactly what tripped me up