From 2797d970332cfb33ac4f1a114c9c0ae93db76460 Mon Sep 17 00:00:00 2001 From: stack72 Date: Tue, 4 Jan 2022 17:21:04 +0000 Subject: [PATCH] Fixing linting of aws-ts-static-website --- aws-ts-static-website/index.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/aws-ts-static-website/index.ts b/aws-ts-static-website/index.ts index a0d88a7af..db837662a 100644 --- a/aws-ts-static-website/index.ts +++ b/aws-ts-static-website/index.ts @@ -155,7 +155,7 @@ if (config.certificateArn === undefined) { // Generate Origin Access Identity to access the private s3 bucket. const originAccessIdentity = new aws.cloudfront.OriginAccessIdentity("originAccessIdentity", { - comment: "this is needed to setup s3 polices and make s3 not public." + comment: "this is needed to setup s3 polices and make s3 not public.", }); // if config.includeWWW include an alias for the www subdomain @@ -176,8 +176,8 @@ const distributionArgs: aws.cloudfront.DistributionArgs = { originId: contentBucket.arn, domainName: contentBucket.websiteEndpoint, s3OriginConfig: { - originAccessIdentity: originAccessIdentity.cloudfrontAccessIdentityPath - }, + originAccessIdentity: originAccessIdentity.cloudfrontAccessIdentityPath, + }, }, ], @@ -303,13 +303,13 @@ const bucketPolicy = new aws.s3.BucketPolicy("bucketPolicy", { { Effect: "Allow", Principal: { - AWS: oaiArn + AWS: oaiArn, }, // Only allow Cloudfront read access. Action: ["s3:GetObject"], Resource: [`${bucketArn}/*`], // Give Cloudfront access to the entire bucket. }, ], - })) + })), }); const aRecord = createAliasRecord(config.targetDomain, cdn);