Skip to content

Commit

Permalink
Add security policy property to CloudFront
Browse files Browse the repository at this point in the history
  • Loading branch information
MaelGNM committed Nov 8, 2024
1 parent cc5c6d0 commit 44a3aea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions cdk/lib/__snapshots__/braze-components.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ Object {
],
],
},
"MinimumProtocolVersion": "TLSv1.2_2018",
"SslSupportMethod": "sni-only",
},
},
Expand Down
2 changes: 2 additions & 0 deletions cdk/lib/braze-components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { Certificate } from 'aws-cdk-lib/aws-certificatemanager';
import {
CloudFrontWebDistribution,
OriginAccessIdentity,
SecurityPolicyProtocol,
ViewerCertificate,
} from 'aws-cdk-lib/aws-cloudfront';
import { Bucket } from 'aws-cdk-lib/aws-s3';
Expand Down Expand Up @@ -52,6 +53,7 @@ export class BrazeComponents extends GuStack {
],
viewerCertificate: ViewerCertificate.fromAcmCertificate(certificate, {
aliases: [props.domainName],
securityPolicy: SecurityPolicyProtocol.TLS_V1_2_2018,
}),
});

Expand Down

0 comments on commit 44a3aea

Please sign in to comment.