Skip to content

Commit

Permalink
fix: duplicate tag policies on org policies (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
rehanvdm authored Jan 24, 2025
1 parent 2d1e47f commit ddfc020
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 87 deletions.
10 changes: 7 additions & 3 deletions src/data-landing-zone.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,13 @@ export class DataLandingZone {

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

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

if (this.props.printReport !== false) {
Report.printConsoleReport();
Expand Down
84 changes: 0 additions & 84 deletions test/__snapshots__/build.test.ts.snap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ddfc020

Please sign in to comment.