2 Respuestas
- Más nuevo
- Más votos
- Más comentarios
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 hace un año
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 hace 5 meses
Contenido relevante
- OFICIAL DE AWSActualizada hace un año
- OFICIAL DE AWSActualizada hace 9 meses
- OFICIAL DE AWSActualizada hace 2 años
- OFICIAL DE AWSActualizada hace 7 meses