https://pulumi.com logo
Title
h

high-vase-81611

11/04/2021, 7:06 PM
hi! there is a way to rename the resource inside a stack ?
l

little-cartoon-10569

11/04/2021, 8:17 PM
Depends on the resource, and by what you mean by "rename"?
For all resources, you can change the Pulumi name without effect, so long as you also add an alias opt back to the original name. However, this has no effect on the provisioned resource, only on the Pulumi state.
For all provisioned resources, the answer depends on the type of resource.
For example, you cannot rename an S3 bucket. AWS does not support that at all. Impossible.
You can easily rename an EC2 instance though, because it's just a tag with key "Name".
h

high-vase-81611

11/05/2021, 7:32 PM
thanks @little-cartoon-10569!
👍 1