aws-amplify / aws-amplify/amplify-cli
Adding tags to specific resources (namely DynamoDB)
- Dominant language
- TypeScript
- Stars
- 2.9k
- Forks
- 825
- Avg merge
- 11d 23h
- Merged PRs (30d)
- 2
Description
>**Note**: If your question is regarding the AWS Amplify Console service, please log it in the
[official AWS Amplify Console forum](https://forums.aws.amazon.com/forum.jspa?forumID=314&start=0)
**Which Category is your question related to?**
API
**Amplify CLI Version**
You can use `amplify -v` to check the amplify cli version on your system
4.44.2
**What AWS Services are you utilising?**
AWS AppSync, DynamoDB
**Provide additional details e.g. code snippets**
I am aware that we can tag resources created by Amplify using the tags file [here](https://docs.amplify.aws/cli/usage/tags). But I would like to add tags only to specific resources, namely DynamoDB.
Our use case is that we have automatic backups setup if we tag our resource with `backup : daily`. The issue here is that the DynamoDB resource does not go into version control so adding the tag to the CloudFormation resource directly wouldn't be suitable.
How can I add the tag `backup : daily` when using the API category with a GraphQL API that makes use of the [@model](https://docs.amplify.aws/cli/graphql-transformer/model#model) directive?
Contributor guide
Assessment
This issue has not been assessed yet.