cloudposse / terraform-aws-cloudfront-cdn

Terraform Module that implements a CloudFront Distribution (CDN) for a custom origin.
https://cloudposse.com/accelerate
Apache License 2.0
99 stars 121 forks source link

feat: allow aws_cloudfront_origin_access_identity to be toggled on/off #127

Closed venkatamutyala closed 5 months ago

venkatamutyala commented 5 months ago

what

Even when i'm using an external origin (ex. a GCP IP) it appears aws_cloudfront_origin_access_identity always gets created. This is to provide a toggle to disable it.

why

The aws_cloudfront_origin_access_identity resource isn't required for all use cases Ex. using cloudfront in front of non-AWS resources.

references

https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudfront_origin_access_identity

Gowiem commented 5 months ago

/terratest