-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Terraform aws provider invalid arn for s3 lambda permission #1508
Comments
I believe this is related to the changes from #1417, which add suport for non- The validation from terraform looks overly restrictive. This is a valid resource ARN. From the IAM docs:
That being said, I think we can get around this if we change the pattern to be EDIT: I confirmed that
So unfortunately my suggested fix won't work. The wildcard was chosen so that the packaging configuration/region didn't have to match the configuration/region that was doing the actual deployment (e.g. terraform apply). Preferably we'd get terraform to update their validation but I'm not sure if there's a reason for their existing validation. Related terraform issue: hashicorp/terraform-provider-aws#9972 |
Thanks for this update and for identifying that issue. On a semi separate note is |
Yes we should be able to do that. At this point, I think that's our best option, fill in the ARN to be as specific as possible. |
a previous version in #1417 used a terraform data partition to construct arns, that should be used again to fix these issues, it was removed for reasons of inconsistencies on dns suffix, but it should be retained for arn construction. |
Packaging the chalice app for terraform is giving me an invalid source_arn error for the aws_lambda_permission s3event
"source_arn": "arn:*:s3:::lambda-function-name
I can't determine whether this is an issue with the validation of the provider or with how chalice is packaging this up?
chalice/chalice/package.py
Line 853 in ba93124
chalice 1.18.1 & 1.19.0, python 3.8.0, terraform aws provider 3.4.0
The text was updated successfully, but these errors were encountered: