Skip to content

Commit b69dea6

Browse files
authored
Merge pull request #193 from aws-samples/feat/infra-config-resource-tags
feat: expose resourceTags property in CfnInfrastructureConfiguration class
2 parents 5fc4270 + ddd7ced commit b69dea6

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

API.md

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/index.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,10 @@ export interface ImagePipelineProps {
125125
* Region for Parameter Store path above
126126
*/
127127
readonly amiIdSsmRegion?: string;
128+
/**
129+
* The tags attached to the resource created by Image Builder
130+
*/
131+
readonly resourceTags?: {[key: string]: any};
128132
}
129133

130134
export class ImagePipeline extends Construct {
@@ -181,6 +185,7 @@ export class ImagePipeline extends Construct {
181185
instanceProfileName: profileName,
182186
name: `${uid}InfraConfig`,
183187
description: 'Example Infrastructure Configuration for Image Builder',
188+
resourceTags: props.resourceTags,
184189
instanceTypes: props.instanceTypes ?? ['t3.medium', 'm5.large', 'm5.xlarge'],
185190
snsTopicArn: this.builderSnsTopic.topicArn,
186191
});
@@ -189,6 +194,7 @@ export class ImagePipeline extends Construct {
189194
instanceProfileName: profileName,
190195
name: `${uid}InfraConfig`,
191196
description: 'Example Infrastructure Configuration for Image Builder',
197+
resourceTags: props.resourceTags,
192198
instanceTypes: props.instanceTypes ?? ['t3.medium', 'm5.large', 'm5.xlarge'],
193199
snsTopicArn: this.builderSnsTopic.topicArn,
194200
securityGroupIds: props.securityGroups,

0 commit comments

Comments
 (0)