Hey all,
I’m trying to add tags to a subnet that being used by my EKS cluster (That also created by the same pulumi stack).
When i’m using
const subnet = aws.ec2.Subnet.get()
, I can’t update its tags as
tags
attribute is readonly.
Does anyone know how to overcome this and update its tags ?
v
victorious-church-57397
05/19/2022, 10:12 AM
When you use the get method, you’re returning a readonly version of the resource. You should update the tags for the subnet where you are defining it in code