-
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
aws_lambda_function qualified_arn isn't updated after changing publish to true #8081
Comments
It's unable to attach existing lambda through data source to cloudfront because As workaround: |
Hi @monolithh, sorry for the very delayed response. I meant to reply but had completely forgotten.
I'm not sure this is accurate. After I changed |
This issue was fixed for the data type, but it looks like it has resurfaced for the data type, also. |
I just ran into this issue and am considering contributing a PR. Is anyone already working on it? |
This has been released in version 3.14.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! |
Community Note
Terraform Version
Affected Resource(s)
Terraform Configuration Files
Note that I forgot to include
publish = true
in my lambda function resource. I have since amended it.Expected Behavior
CloudFront Distribution should be updated to include the Lambda@Edge function based on the version number, which is now present because publish has been changed to true.
Actual Behavior
Terraform still tries to add the Lambda@Edge function using the $LATEST alias. CloudFront Distribution throws
aws_cloudfront_distribution.mydistribution: error updating CloudFront Distribution (***********): InvalidLambdaFunctionAssociation: The function ARN must reference a specific function version. (The ARN must end with the version number.) ARN: arn:aws:lambda:us-east-1:XXXXXXXXXXXX:function:test.example.com_originrequest:$LATEST
.Steps to Reproduce
publish = true
on the Lambda functionWorkaround
Changing the function_name will cause the qualified_arn to be updated.
The text was updated successfully, but these errors were encountered: