-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inconsistency in AWS Terraform provider with aws_lambda_function #11787
Comments
Hey @SarahRiley 👋 Thank you for taking the time to file this issue. In reviewing the documentation, it seems as though the behavior may have changed, but I'm not not entirely sure which version of the AWS provider you were previously using, so it's difficult for me to say with certainty. With that in mind, given that there's been a number of AWS provider releases since you initially filed this, I wanted to follow up and see if you're still experiencing this behavior. |
This is still reproducable in Terraform 1.0.11 and aws provider 3.68.0 |
Hi all 👋 Just letting you know that this is issue is featured on this quarters roadmap. If a PR exists to close the issue a maintainer will review and either make changes directly, or work with the original author to get the contribution merged. If you have written a PR to resolve the issue please ensure the "Allow edits from maintainers" box is checked. Thanks for your patience and we are looking forward to getting this merged soon! |
Closed via #11195. |
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. |
When using a data resource for aws_lambda_function, the qualified_arn comes back as:
But the non-data resource has a qualified_arn of:
Why is this different?
This breaks for us when using the data resource for a lambda with a cloudfront distribution, as it requires the qualified_arn to end with a number:
Error: error creating CloudFront Distribution: InvalidLambdaFunctionAssociation: The function ARN must reference a specific function version. (The ARN must end with the version number.)
Community Note
Terraform Version
0.12.19
Affected Resource(s)
Expected Behavior
Data resource for aws_lambda_function should have returned
arn:aws:lambda:us-east-1:1234:function:foo:5
, like the non-data resource.Actual Behavior
Data resource for aws_lambda_function returned
arn:aws:lambda:us-east-1:1234:function:foo:$LATEST
The text was updated successfully, but these errors were encountered: