Applying tags in custom constructs #19282
-
I was wondering if anyone else had a similar problem and found any solutions. We are building shared constructs internally to be used by different app teams. These are just pre defined resources that follow our organizational requirements (e.g. creating a vpc with specific network settings) We wanted to have certain Tags defined at the Construct level irrespective of which project is using them - rather than requiring teams to add these tags manually. However trying to apply tags with Tags.of(cusomresource).add('TagName','TagValue') does not work within the custom Construct, it only seems to work at the Stack level. Our fail safe option is scanning the synthesized templates before deployment to verify these tags are set - but we would rather have them set at the construct level to begin with. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
It looks like it's related to this issue: Work around is to copy the files generated from npm run build to our main project. Yeah, it's a bummer |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
It looks like it's related to this issue:
#18914.
Work around is to copy the files generated from npm run build to our main project. Yeah, it's a bummer