hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.87k stars 9.21k forks source link

[Bug]: data aws_cloudfront_function "stage" value #30548

Open sterichards opened 1 year ago

sterichards commented 1 year ago

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

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" {

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

github-actions[bot] commented 1 year ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue

tysonnero-ccm commented 9 months ago

@sterichards Did you ever resolve this issue?