Skip to content
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

Merged

Conversation

jeremy-asher
Copy link
Contributor

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.

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.
@Ninir Ninir added the enhancement Requests to existing resources that expand the functionality or scope. label Jun 13, 2017
@radeksimko radeksimko force-pushed the fix/lambda_permission_govcloud branch from 0b78a2b to d5ea4d0 Compare June 14, 2017 10:20
This corrects the region of the existing Lambda GovCloud tests and adds
one more GovCloud test for the aws_lambda_permission resource.
@radeksimko radeksimko force-pushed the fix/lambda_permission_govcloud branch from d5ea4d0 to e7e0c56 Compare June 14, 2017 10:21
Copy link
Member

@radeksimko radeksimko left a 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.
👍

@radeksimko radeksimko merged commit 240bdd0 into hashicorp:master Jun 14, 2017
@jeremy-asher jeremy-asher deleted the fix/lambda_permission_govcloud branch June 14, 2017 15:28
@jeremy-asher
Copy link
Contributor Author

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.

@ghost
Copy link

ghost commented Apr 12, 2020

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!

@ghost ghost locked and limited conversation to collaborators Apr 12, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Requests to existing resources that expand the functionality or scope.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants