Data sources exist for most resource types, but not for a aws_cloudfront_distribution
.
My use case is that I create a aws_cloudfront_distribution in one environment and want to create CNAMEs at an other environment (each environment has its own set of terraform files and state file).
It would be useful to reference a data source by tags.
I would probably add that a data source for aws_cloudfront_origin_access_identity
would be great too.
datasource for aws_cloudfront_origin_access_identity
is also useful to reference in a s3 bucket policy
Can we get an ETA for these changes by chance, not sure how releases work here?
I have a PR open here https://github.com/terraform-providers/terraform-provider-aws/pull/6468. Its pretty old now and has gone stale. I'll see if I can update it.
Support for a new aws_cloudfront_distribution
data source has been merged and will release later this week with version 2.57.0 of the Terraform AWS Provider. Thanks to @dpetzold for the implementation. 👍
For further enhancements to this data source or requests for new data sources, please create new, individual feature requests.
This has been released in version 2.57.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.
For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks!
I'm going to lock this issue because it has been closed for _30 days_ ⏳. This helps our maintainers find and focus on the active issues.
If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!
Most helpful comment
I would probably add that a data source for
aws_cloudfront_origin_access_identity
would be great too.