aws / aws/serverless-application-model

Support for AWS::CloudFront::OriginAccessControl

Open
#3,681 1 comment 1 reaction 0 assignees View on GitHub
stage/needs-investigation type/feature
Dominant language
Python
Stars
9.6k
Forks
2.5k
Avg merge
1d 11h
Merged PRs (30d)
7

Description

Right now I cannot upload my template to the Serverless Repository with an `AWS::CloudFront::OriginAccessControl` inside. We just refactored this, to move away from the now-legacy `AWS::CloudFront::CloudFrontOriginAccessIdentity`.

That CloudFront construct was launched in 2022: https://aws.amazon.com/blogs/networking-and-content-delivery/amazon-cloudfront-introduces-origin-access-control-oac/

However, we run into an error and it turns out `AWS::CloudFront::OriginAccessControl` is not on the [List of Supported AWS Resources](https://docs.aws.amazon.com/serverlessrepo/latest/devguide/list-supported-resources.html) for the Serverless Repository.

Can that be supported please?

```
+ sam publish --template packaged.yaml
Publish Failed
Error: The template contains unsupported resource types. [AWS::CloudFront::OriginAccessControl]
Please follow the instructions in https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-template-publishing-applications.html
```

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.