Skip to content

Commit

Permalink
add name tag to newsletters-data bucket (#329)
Browse files Browse the repository at this point in the history
  • Loading branch information
marjisound authored Nov 12, 2024
1 parent 5ec64b8 commit 4d0e771
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions cdk/lib/__snapshots__/newsletters-tool.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,12 @@ exports[`The Newsletters stack matches the snapshot 1`] = `
"Key": "gu:repo",
"Value": "guardian/newsletters-nx",
},
{
"Key": "Name",
"Value": {
"Ref": "SsmParameterValueTESTnewslettersnewslettersapis3BucketNameC96584B6F00A464EAD1953AFF4B05118Parameter",
},
},
{
"Key": "Stack",
"Value": "newsletters",
Expand Down
4 changes: 3 additions & 1 deletion cdk/lib/newsletters-tool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
} from '@guardian/cdk/lib/constructs/core';
import { GuCname } from '@guardian/cdk/lib/constructs/dns';
import { GuHttpsEgressSecurityGroup } from '@guardian/cdk/lib/constructs/ec2';
import { type App, aws_ses, Duration, SecretValue } from 'aws-cdk-lib';
import { type App, aws_ses, Duration, SecretValue, Tags } from 'aws-cdk-lib';
import { InstanceClass, InstanceSize, InstanceType } from 'aws-cdk-lib/aws-ec2';
import {
ApplicationListenerRule,
Expand Down Expand Up @@ -112,6 +112,8 @@ EOL`,
versioned: true,
});

Tags.of(dataStorageBucket).add('Name', bucketName);

const sesVerifiedIdentity = new EmailIdentity(this, 'EmailIdentity', {
identity: aws_ses.Identity.domain(domainNameTool),
});
Expand Down

0 comments on commit 4d0e771

Please sign in to comment.