copilot-cli icon indicating copy to clipboard operation
copilot-cli copied to clipboard

Add support for resourceTags in `copilot env deploy`

Open efekarakus opened this issue 3 years ago • 5 comments

Is it feasible to add support for resourceTags for copilot env deploy command at https://github.com/aws/copilot-cli/blob/mainline/internal/pkg/cli/env_deploy.go#L29? This thought is similar to what is currently available for copilot svc deploy command/s at https://github.com/aws/copilot-cli/blob/mainline/internal/pkg/cli/svc_deploy.go#L40.

In general, it could be beneficial to have resourceTags option on multiple cli commands(where feasible) that may allow users to apply custom tags on all the resources which copilot creates or adding tags on resources already created by copilot. Having custom tags is generally a hard requirement at many organizations where users may be expected to tag all the resources. Thoughts?

Discussion

Discussed in https://github.com/aws/copilot-cli/discussions/3872

efekarakus avatar Aug 10 '22 16:08 efekarakus

@efekarakus I think it would be useful to add custom resource tags for everything from within the manifest as well if possible.

h5aaimtron avatar Dec 17 '22 01:12 h5aaimtron

@h5aaimtron 👍 would you expect the tags in the environment manifest to apply to all resources within an environment? More specifically for example, would you expect a Load Balanced Web Service to "inherit" the tags in the environment manifest?

efekarakus avatar Dec 19 '22 17:12 efekarakus

@efekarakus yeah, I guess I would or at least provide a flag to say so. I believe that is how it is working in our CDK stacks.

h5aaimtron avatar Dec 19 '22 18:12 h5aaimtron

Any ETA on this?

proof-nicholas avatar Oct 30 '24 11:10 proof-nicholas

@efekarakus Is it possible to add tags at the environment level. It would be really helpful if you could update us on this. Thanks.

harvindkumark avatar Jan 27 '25 09:01 harvindkumark