2개 답변
- 최신
- 최다 투표
- 가장 많은 댓글
0
I'm closing this for now. I settled on just using the old way first until the CDK catches up.
const oin = new OriginAccessIdentity(stack, 'washnet-cf-origin-access-identity');
sourceBucket.grantRead(oin);
then in the cloudfront config:
s3OriginSource: {
s3BucketSource: source,
originAccessIdentity: oin
},
Good enough for now.
답변함 일 년 전
0
The policy statement syntax is wrong: conditions is not a list. Annoyingly IDEs do not catch this error. Try:
conditions: { StringEquals: { "AWS:SourceArn": `arn:aws:cloudfront::${this.account}:distribution/${distribution.distributionId}` } }
답변함 5달 전
관련 콘텐츠
- AWS 공식업데이트됨 2년 전