Skip to content

Commit

Permalink
Merge pull request #240 from consensusnetworks/develop
Browse files Browse the repository at this point in the history
Promote develop to master
  • Loading branch information
shanejearley authored Jan 12, 2023
2 parents fdacded + 4df7038 commit 7f02fbe
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions infrastructure/cdk/lib/landing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,6 @@ export class LandingStack extends Stack {
accessControl: BucketAccessControl.PRIVATE
})

new BucketDeployment(this, `${project}${this.service}BucketDeployment${stage}`, {
destinationBucket: bucket,
sources: [Source.asset(this.assetPath)]
})

const originAccessIdentity = new OriginAccessIdentity(this, `${project}${this.service}OriginAccessIdentity${stage}`)
bucket.grantRead(originAccessIdentity)

Expand Down Expand Up @@ -93,6 +88,13 @@ export class LandingStack extends Stack {
certificate
})

new BucketDeployment(this, `${project}${this.service}BucketDeployment${stage}`, {
destinationBucket: bucket,
sources: [Source.asset(this.assetPath)],
distribution,
distributionPaths: ['/*']
})

new route53.ARecord(this, `${project}${this.service}DnsARecord${stage}`, {
recordName: serviceDomain,
zone: hostedZone as route53.IHostedZone,
Expand Down

0 comments on commit 7f02fbe

Please sign in to comment.