Skip to content

Commit

Permalink
fixed domains
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeshay committed Nov 16, 2023
1 parent 48d293a commit 17223c7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 25 deletions.
17 changes: 4 additions & 13 deletions apps/infra/cdk.context.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,6 @@
{
"acknowledged-issue-numbers": [8607],
"hosted-zone:account=357382603627:domainName=astro-aws.org:region=us-east-1": {
"Id": "/hostedzone/Z07804331OLCIOIZL4YQN",
"Name": "astro-aws.org."
},
"hosted-zone:account=738697399292:domainName=astro-aws.org:region=us-east-1": {
"Id": "/hostedzone/Z0584480MGUI8KRBPWM",
"Name": "astro-aws.org."
},
"hosted-zone:account=738697399292:domainName=astro-aws.org:region=us-east-2": {
"Id": "/hostedzone/Z0584480MGUI8KRBPWM",
"Name": "astro-aws.org."
}
"hosted-zone:account=738697399292:domainName=astro-aws.org:region=us-east-1": {
"Id": "/hostedzone/Z0584480MGUI8KRBPWM",
"Name": "astro-aws.org."
}
}
4 changes: 2 additions & 2 deletions apps/infra/src/lib/stacks/redirect-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,13 @@ export class RedirectStack extends Stack {
})

new ARecord(this, "ARecord", {
recordName: domainName,
recordName: `www.${domainName}`,
target: RecordTarget.fromAlias(new CloudFrontTarget(distribution)),
zone: hostedZone,
})

new AaaaRecord(this, "AaaaRecord", {
recordName: domainName,
recordName: `www.${domainName}`,
target: RecordTarget.fromAlias(new CloudFrontTarget(distribution)),
zone: hostedZone,
})
Expand Down
10 changes: 0 additions & 10 deletions apps/infra/src/lib/stacks/website-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,22 +67,12 @@ class WebsiteStack extends Stack {
minTtl: Duration.days(365),
})

// const cfLogInjestFunction = Function.fromFunctionAttributes(this, "CfLogInjestLambda", {
// architecture: Architecture.ARM_64,
// functionArn: "arn:aws:lambda:us-east-1:738697399292:function:CfLogIngestStack-LambdaD247545B-IHTgL5hMPXUT",
// sameEnvironment: false,
// });

const accessLogBucket = new Bucket(this, "AccessLogBucket", {
accessControl: BucketAccessControl.LOG_DELIVERY_WRITE,
blockPublicAccess: BlockPublicAccess.BLOCK_ALL,
encryption: BucketEncryption.S3_MANAGED,
})

// accessLogBucket.addObjectCreatedNotification(new LambdaDestination(cfLogInjestFunction), {
// prefix: "cloudfront/",
// });

const astroAwsConstruct = new AstroAWS(this, "AstroAWSConstruct", {
cdk: {
cloudfrontDistribution: {
Expand Down

0 comments on commit 17223c7

Please sign in to comment.