🤖

AWS CDK で `CloudFrontWebDistribution` を使ってはいけない

2022/03/29に公開

https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_cloudfront-readme.html#distribution-api

The Distribution API is currently being built to replace the existing CloudFrontWebDistribution API. The Distribution API is optimized for the most common use cases of CloudFront distributions (e.g., single origin and behavior, few customizations) while still providing the ability for more advanced use cases. The API focuses on simplicity for the common use cases, and convenience methods for creating the behaviors and origins necessary for more complex use cases.

Distribution を使いましょう

ぼくの場合 CloudFrontWebDistribution だと CachePolicy を作れなくて困りました

Discussion