You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The README documentation of aws-cloudfront-s3 pattern is not correct.
The pattern did not create OAI anymore. I remember in early version, it do create the CloudFront OAI. Example can be seen here.
Reproduction Steps
In the documentation here. The type of cloudFrontDistributionProps is cloudfront.CloudFrontWebDistributionProps. However, in the code, it is cloudfront.DistributionProps.
Error Log
No.
Environment
CDK CLI Version :
CDK Framework Version:
AWS Solutions Constructs Version :
OS :
Language :
Other
This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered:
JoeShi
changed the title
aws0c
aws-cloudfront-s3 README issue and cannot generate AOI resource
Feb 2, 2021
JoeShi
changed the title
aws-cloudfront-s3 README issue and cannot generate AOI resource
aws-cloudfront-s3 README issue and cannot generate OAI resource
Feb 2, 2021
Thanks for the feedback. Since v1.68.0, for all Cloudfront patterns, the underlying Cloudfront L2 CDK construct has changed from CloudFrontWebDistribution to Distribution See the Changelog and related issue We will update the READMEs
One of the benefits of using the new L2 CDK construct was that it creates the OAI hence the aws-cloudfront-s3 pattern no longer needs to create the OAI, so if you change your input props from CloudFrontWebDistributionProps to DistributionProps you should see the OAI resource being created.
Reproduction Steps
In the documentation here. The type of
cloudFrontDistributionProps
iscloudfront.CloudFrontWebDistributionProps
. However, in the code, it iscloudfront.DistributionProps
.Error Log
No.
Environment
Other
This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: