Skip to content

feat: add resource tagging support#564

Open
tejaskash wants to merge 1 commit intomainfrom
feat/resource-tagging
Open

feat: add resource tagging support#564
tejaskash wants to merge 1 commit intomainfrom
feat/resource-tagging

Conversation

@tejaskash
Copy link
Contributor

@tejaskash tejaskash commented Mar 18, 2026

Summary

  • Add agentcore tag command with subcommands: list, add, remove, set-defaults, remove-defaults
  • Add TagsSchema to project, agent, memory, and gateway schemas (optional, backward compatible)
  • Auto-tag new projects with agentcore:created-by: agentcore-cli and agentcore:project-name: <name>
  • Project-level default tags propagate to all resources; per-resource tags override on conflict
  • Taggable resources: agents, memories, gateways. Credentials are not taggable (deployed via Identity API, not CFN)
  • No changes to vended CDK code; tag propagation handled by L3 constructs

Companion PR: https://github.com/aws/agentcore-l3-cdk-constructs/pull/87

Test plan

  • Schema unit tests: TagKeySchema, TagValueSchema, TagsSchema validation (11 tests)
  • Action unit tests: listTags, addTag, removeTag, setDefaultTag, removeDefaultTag (12 tests)
  • Integration tests: tag command round-trip (create project, add/list/remove tags)
  • All 2243 existing unit tests pass, snapshots up to date
  • End-to-end: created project, added tags, deployed, verified tags on AWS resources via CloudFormation template

Add `agentcore tag` command for managing AWS resource tags on agents,
memories, and gateways. Supports project-level default tags (inherited
by all resources) and per-resource tag overrides.

- Add TagsSchema to project, agent, memory, and gateway schemas
- Add `tag list|add|remove|set-defaults|remove-defaults` subcommands
- Auto-tag new projects with `agentcore:created-by` and `agentcore:project-name`
- Add unit tests for schema validation and tag actions
- Add integration tests for tag command round-trip
@tejaskash tejaskash requested a review from a team March 18, 2026 22:43
@github-actions github-actions bot added the size/l PR size: L label Mar 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/l PR size: L

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant