aws / aws/aws-cdk

awscloudfrontorigins: support "Don't use OAI" option in S3 origin

Open
#16,200 5 comments 0 reactions 1 assignee Claimed by @otaviomacedo View on GitHub
@aws-cdk/aws-s3 effort/small feature-request p2
Dominant language
TypeScript
Stars
12.9k
Forks
4.6k
Avg merge
2d 3h
Merged PRs (30d)
83

Description

At the moment, a new Origin Access Identity will be created for a S3 origin no matter what in CDK. Please allow [an empty string](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-s3originconfig.html) to be specified in `OriginAccessIdentity`, such as:

```yaml
- DomainName: !Sub "my-bucket.s3.ap-southeast-2.${AWS::URLSuffix}"
Id: my-origin-id
S3OriginConfig:
# NOTE: keep this as empty to disable OAI
OriginAccessIdentity: ""
```

to support the "Don't use OAI" option in CloudFront origin configuration page:

Screen Shot 2021-08-24 at 7 47 37 pm

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.