data aws_cloudfront_function should return a CloudFront function
Actual Behavior
The "stage" value is required and can only be "DEVELOPMENT" or "LIVE" and this causes it not to find the CloudFront function
Relevant Error/Panic Output Snippet
data "aws_cloudfront_function" "rewrite_request_to_index_html_function" {
name = "rewrite_request_to_index_html"
stage = "DEVELOPMENT"
}
Terraform Configuration Files
Error: describing CloudFront Function (rewrite_request_to_index_html/DEVELOPMENT): couldn't find resource │ │ with data.aws_cloudfront_function.rewrite_request_to_index_html_function, │ on data.tf line 32, in data "aws_cloudfront_function" "rewrite_request_to_index_html_function": │ 32: data "aws_cloudfront_function" "rewrite_request_to_index_html_function" {
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.
Volunteering to Work on This Issue
If you are interested in working on this issue, please leave a comment.
If this would be your first contribution, please review the contribution guide.
Terraform Core Version
1.3.4
AWS Provider Version
4.62.0
Affected Resource(s)
Expected Behavior
data aws_cloudfront_function should return a CloudFront function
Actual Behavior
The "stage" value is required and can only be "DEVELOPMENT" or "LIVE" and this causes it not to find the CloudFront function
Relevant Error/Panic Output Snippet
Terraform Configuration Files
Error: describing CloudFront Function (rewrite_request_to_index_html/DEVELOPMENT): couldn't find resource │ │ with data.aws_cloudfront_function.rewrite_request_to_index_html_function, │ on data.tf line 32, in data "aws_cloudfront_function" "rewrite_request_to_index_html_function": │ 32: data "aws_cloudfront_function" "rewrite_request_to_index_html_function" {
Steps to Reproduce
See above
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
None