Skip to content

Commit ddfc020

Browse files
authored
fix: duplicate tag policies on org policies (#108)
1 parent 2d1e47f commit ddfc020

File tree

2 files changed

+7
-87
lines changed

2 files changed

+7
-87
lines changed

src/data-landing-zone.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -197,9 +197,13 @@ export class DataLandingZone {
197197

198198
this.pipeline.synth(this.pipeline.waves, this.props.printDeploymentOrder);
199199

200-
Tags.of(app).add('Owner', 'infra');
201-
Tags.of(app).add('Project', 'dlz');
202-
Tags.of(app).add('Environment', 'dlz');
200+
// https://github.com/aws-cloudformation/cloudformation-coverage-roadmap/issues/2244
201+
const excludeResourceTypes = [
202+
'AWS::Organizations::Policy',
203+
];
204+
Tags.of(app).add('Owner', 'infra', { excludeResourceTypes: excludeResourceTypes });
205+
Tags.of(app).add('Project', 'dlz', { excludeResourceTypes: excludeResourceTypes });
206+
Tags.of(app).add('Environment', 'dlz', { excludeResourceTypes: excludeResourceTypes });
203207

204208
if (this.props.printReport !== false) {
205209
Report.printConsoleReport();

test/__snapshots__/build.test.ts.snap

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

0 commit comments

Comments
 (0)