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

mammoth-caravan-51104

02/14/2020, 5:49 PM
Simple question, how do you add tags to existing resources in AWS?
h

handsome-actor-1155

02/14/2020, 6:13 PM
You would import that resource as is with https://www.pulumi.com/blog/adopting-existing-cloud-resources-into-pulumi/ After you’ve imported that resource, you can then add tags like you would with any other resource
m

mammoth-caravan-51104

02/14/2020, 6:39 PM
Thanks, the subnet is created as a part of default VPC. I couldn't find how to modify properties of already created resource, is it simply done with property setter functions? something like: subnet.tags = []?
the question is exactly how would you modify tags, or other properties on a resource?