fix missing bucket reference
MODIFY
aws-ts-static-website/index.ts
aws-ts-static-website/index.ts
@@ -296,7 +296,7 @@ function createWWWAliasRecord(targetDomain: string, distribution: aws.cloudfront
}
const bucketPolicy = new aws.s3.BucketPolicy("bucketPolicy", {
- bucket: siteBucket.id, // refer to the bucket created earlier
+ bucket: contentBucket.id, // refer to the bucket created earlier
policy: pulumi.all([originAccessIdentity.iamArn, contentBucket.arn]).apply(([oaiArn, bucketArn]) =>JSON.stringify({
Version: "2012-10-17",
Statement: [

fix missing bucket reference (#1224)