Skip to content

feat(infra): add solution-tracking metrics ID to CloudFormation stack description #292

@scottschreckengaust

Description

@scottschreckengaust

Summary

Append the AWS solution-tracking metrics identifier (uksb-wt64nei4u6) to the CloudFormation stack description so deployments of this sample are counted via AWS's standard usage-tracking mechanism.

Background

AWS samples/solutions embed a uksb-* tracking token in the stack description to record anonymized deployment metrics. This stack currently sets a plain description (cdk/src/main.ts:41):

description: 'ABCA Development Stack',

Acceptance criteria

  • The stack description includes the tracking ID: ABCA Development Stack (uksb-wt64nei4u6)
  • CDK compiles and synth succeeds; existing tests pass
  • No other behavior changes

Coupling note (must address before/with the cleanup-script branch)

The in-flight feat/cleanup-ephemeral-stacks branch (PR #109) matches ABCA stacks by an exact description string ([[ "$DESCRIPTION" != "ABCA Development Stack" ]]). Appending the tracking ID changes the description and will break that exact match once both land. When the cleanup script merges, its matcher must switch to a prefix match (e.g. == "ABCA Development Stack"*). Tracking here so it isn't missed.

Metadata

Metadata

Labels

approvedWhen an issue has been approved and readyenhancementNew feature or requestinfra-cdkCDK stacks/constructs, bootstrap, deploy topology, tags, IAM wiring, teardown

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions