feat: tag resources with RFDK meta-data #74
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Change
Add meta-data tags to CloudFormation resources deployed by the following RFDK constructs:
MongoDbInstance
HealthMonitor
Repository
RenderQueue
UsageBasedLicensing
WorkerFleet
The tag used is named
aws-rfdk
and it is tagged using the following template:This was generalized into the
tagConstruct(construct)
function inpackages/aws-rfdk/lib/core/lib/runtime-info.ts
, which is called in the constructors of each construct listed above.Testing
testConstructTags(args)
inpackages/aws-rfdk/lib/core/test/tag-helpers.ts
, that can be called from a test module to generate tests for tagging. It ensures that a specified number of each given CloudFormation resource type (e.g.AWS::AutoScaling::AutoScalingGroup
) has the expected tag.testConstructTag()
function to each of the above-listed construct's test suites.Repository
construct. Synthesized the app withcdk synth
and confirmed the resources were tagged as expectedBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license