Hello, I changed the CloudFront origin access config in this release from using an origin access identity to using the new origin access control. This update will not deploy without a few steps first. On the initial deployment, Terraform will fail saying the Origin Access Identity is still in use. That is fine and will not disrupt anything. Follow the steps below to complete the update in this release.
- Deploy Terraform with the updated Cloudfront origin access configuration.
- Log into your AWS account and go to Cloudfront.
- Change the origin access config from an identity to the access control option.
- Select the newly created access control policy. MAKE THIS UPDATE FOR ALL ORIGINS CONFIGURED FOR THE DISTRIBUTION
- Re-deploy the Terraform.
Terraform should deploy successfully after changing the access control configuration of your distribution. Please create an issue if this does not work as expected. I did this with my own implementation, and it worked successfully for me.