-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
fix incorrect Lambda GovCloud regexes #16
fix incorrect Lambda GovCloud regexes #16
Conversation
This updates two regexes that are used to validate and parse ARNs for aws_lambda_permission. The ARNs were not accurate when using GovCloud Lambdas. This resulted in failures during the read call after applying a resource.
0b78a2b
to
d5ea4d0
Compare
This corrects the region of the existing Lambda GovCloud tests and adds one more GovCloud test for the aws_lambda_permission resource.
d5ea4d0
to
e7e0c56
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, I just modified the test data as you were originally removing the old format of gov ARN. I personally don't know whether it's still valid, but I think it's good to keep it there.
👍
Ah, yes. The us-west-2 region is not a GovCloud region, so that ARN could never occur, though it can't hurt anything to test for other region formats there if they ever make one. Personally, I think the Regex is unnecessarily strict. |
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! |
This is a replacement for hashicorp/terraform#14850.
This addresses several regexes used for matching Lambda ARNs to account for the extra section in the GovCloud region name. It also updates tests to match.