2 Respostas
- Mais recentes
- Mais votos
- Mais comentários
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.
respondido há 2 anos
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}` } }
respondido há 6 meses
Conteúdo relevante
- AWS OFICIALAtualizada há 10 meses
- AWS OFICIALAtualizada há 2 anos
- AWS OFICIALAtualizada há 2 anos