sid88in / sid88in/serverless-appsync-plugin

Inherit `provider.tags` onto the AppSync API

Open
#725 0 comments 0 reactions 1 assignee View on GitHub

@sid88in is already working on this.

Since Jun 2, 2026.

enhancement
Dominant language
TypeScript
Stars
955
Forks
187
PR merge metrics
No merged PRs in 30d

Description

Split out from the v2 RFC (#378 thread, raised by @tuukkafc).

Problem

Tags defined at the Serverless provider level are not applied to the AppSync API. Users
expect provider tags to propagate to resources the way they do for other resources, but the
plugin only uses tags defined under appSync.tags.

Current state (v2)

Api.getTagsConfig() reads only this.config.tags (the appSync.tags block) and there is
no reference to provider.tags (or provider.stackTags) anywhere in the plugin. So
provider-level tags are dropped for the AppSync API.

Proposal

Merge provider.tags with appSync.tags when building the API's Tags, with appSync.tags
taking precedence on key conflicts. Small, surgical change in getTagsConfig().

Scope notes
  • AWS::AppSync::GraphQLApi supports Tags; AWS::AppSync::DataSource and
    AWS::AppSync::Resolver do not, so the practical scope is the API resource (and
    potentially the log group, which is a separate AWS::Logs::LogGroup).
  • Worth deciding whether to also fold in provider.stackTags.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.