-
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
r/aws_apigatewayv2_authorizer: Support Lambda authorization options for HTTP APIs #15232
r/aws_apigatewayv2_authorizer: Support Lambda authorization options for HTTP APIs #15232
Conversation
…or HTTP APIs. Acceptance test output: $ make testacc TEST=./aws TESTARGS='-run=TestAccAWSAPIGatewayV2Authorizer_' ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSAPIGatewayV2Authorizer_ -timeout 120m === RUN TestAccAWSAPIGatewayV2Authorizer_basic === PAUSE TestAccAWSAPIGatewayV2Authorizer_basic === RUN TestAccAWSAPIGatewayV2Authorizer_disappears === PAUSE TestAccAWSAPIGatewayV2Authorizer_disappears === RUN TestAccAWSAPIGatewayV2Authorizer_Credentials === PAUSE TestAccAWSAPIGatewayV2Authorizer_Credentials === RUN TestAccAWSAPIGatewayV2Authorizer_JWT === PAUSE TestAccAWSAPIGatewayV2Authorizer_JWT === RUN TestAccAWSAPIGatewayV2Authorizer_HttpApiLambdaRequestAuthorizer === PAUSE TestAccAWSAPIGatewayV2Authorizer_HttpApiLambdaRequestAuthorizer === CONT TestAccAWSAPIGatewayV2Authorizer_basic === CONT TestAccAWSAPIGatewayV2Authorizer_HttpApiLambdaRequestAuthorizer === CONT TestAccAWSAPIGatewayV2Authorizer_JWT === CONT TestAccAWSAPIGatewayV2Authorizer_Credentials === CONT TestAccAWSAPIGatewayV2Authorizer_disappears resource_aws_apigatewayv2_authorizer_test.go:59: [INFO] Got non-empty plan, as expected --- PASS: TestAccAWSAPIGatewayV2Authorizer_disappears (50.06s) --- PASS: TestAccAWSAPIGatewayV2Authorizer_basic (72.89s) --- PASS: TestAccAWSAPIGatewayV2Authorizer_HttpApiLambdaRequestAuthorizer (87.77s) --- PASS: TestAccAWSAPIGatewayV2Authorizer_JWT (100.85s) --- PASS: TestAccAWSAPIGatewayV2Authorizer_Credentials (110.88s) PASS ok github.com/terraform-providers/terraform-provider-aws/aws 110.928s
Acceptance test output: $ make testacc TEST=./aws TESTARGS='-run=TestAccAWSAPIGatewayV2Authorizer_' ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSAPIGatewayV2Authorizer_ -timeout 120m === RUN TestAccAWSAPIGatewayV2Authorizer_basic === PAUSE TestAccAWSAPIGatewayV2Authorizer_basic === RUN TestAccAWSAPIGatewayV2Authorizer_disappears === PAUSE TestAccAWSAPIGatewayV2Authorizer_disappears === RUN TestAccAWSAPIGatewayV2Authorizer_Credentials === PAUSE TestAccAWSAPIGatewayV2Authorizer_Credentials === RUN TestAccAWSAPIGatewayV2Authorizer_JWT === PAUSE TestAccAWSAPIGatewayV2Authorizer_JWT === RUN TestAccAWSAPIGatewayV2Authorizer_HttpApiLambdaRequestAuthorizer === PAUSE TestAccAWSAPIGatewayV2Authorizer_HttpApiLambdaRequestAuthorizer === CONT TestAccAWSAPIGatewayV2Authorizer_basic === CONT TestAccAWSAPIGatewayV2Authorizer_JWT === CONT TestAccAWSAPIGatewayV2Authorizer_HttpApiLambdaRequestAuthorizer === CONT TestAccAWSAPIGatewayV2Authorizer_Credentials === CONT TestAccAWSAPIGatewayV2Authorizer_disappears --- PASS: TestAccAWSAPIGatewayV2Authorizer_basic (58.65s) === CONT TestAccAWSAPIGatewayV2Authorizer_disappears resource_aws_apigatewayv2_authorizer_test.go:58: [INFO] Got non-empty plan, as expected --- PASS: TestAccAWSAPIGatewayV2Authorizer_disappears (70.72s) --- PASS: TestAccAWSAPIGatewayV2Authorizer_JWT (86.07s) --- PASS: TestAccAWSAPIGatewayV2Authorizer_Credentials (93.11s) --- PASS: TestAccAWSAPIGatewayV2Authorizer_HttpApiLambdaRequestAuthorizer (98.31s) PASS ok github.com/terraform-providers/terraform-provider-aws/aws 98.353s
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.
one comment, otherwise tests are passing
--- PASS: TestAccAWSAPIGatewayV2Authorizer_basic (76.72s)
--- PASS: TestAccAWSAPIGatewayV2Authorizer_disappears (69.58s)
--- PASS: TestAccAWSAPIGatewayV2Authorizer_Credentials (165.78s)
--- PASS: TestAccAWSAPIGatewayV2Authorizer_JWT (123.90s)
--- PASS: TestAccAWSAPIGatewayV2Authorizer_HttpApiLambdaRequestAuthorizer (119.70s)
Acceptance test output: $ make testacc TEST=./aws TESTARGS='-run=TestAccAWSAPIGatewayV2Authorizer_' ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSAPIGatewayV2Authorizer_ -timeout 120m === RUN TestAccAWSAPIGatewayV2Authorizer_basic === PAUSE TestAccAWSAPIGatewayV2Authorizer_basic === RUN TestAccAWSAPIGatewayV2Authorizer_disappears === PAUSE TestAccAWSAPIGatewayV2Authorizer_disappears === RUN TestAccAWSAPIGatewayV2Authorizer_Credentials === PAUSE TestAccAWSAPIGatewayV2Authorizer_Credentials === RUN TestAccAWSAPIGatewayV2Authorizer_JWT === PAUSE TestAccAWSAPIGatewayV2Authorizer_JWT === RUN TestAccAWSAPIGatewayV2Authorizer_HttpApiLambdaRequestAuthorizer === PAUSE TestAccAWSAPIGatewayV2Authorizer_HttpApiLambdaRequestAuthorizer === CONT TestAccAWSAPIGatewayV2Authorizer_basic === CONT TestAccAWSAPIGatewayV2Authorizer_JWT === CONT TestAccAWSAPIGatewayV2Authorizer_HttpApiLambdaRequestAuthorizer === CONT TestAccAWSAPIGatewayV2Authorizer_Credentials === CONT TestAccAWSAPIGatewayV2Authorizer_disappears resource_aws_apigatewayv2_authorizer_test.go:58: [INFO] Got non-empty plan, as expected --- PASS: TestAccAWSAPIGatewayV2Authorizer_disappears (57.32s) --- PASS: TestAccAWSAPIGatewayV2Authorizer_basic (65.45s) --- PASS: TestAccAWSAPIGatewayV2Authorizer_Credentials (86.23s) --- PASS: TestAccAWSAPIGatewayV2Authorizer_JWT (91.33s) --- PASS: TestAccAWSAPIGatewayV2Authorizer_HttpApiLambdaRequestAuthorizer (92.73s) PASS ok github.com/terraform-providers/terraform-provider-aws/aws 92.780s
@DrFaust92 Could you please re-review? Thanks. |
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.
Still an issue with zero value on create.
…alues for cache TTL. Acceptance test output: $ make testacc TEST=./aws/ TESTARGS='-run=TestAccAWSAPIGatewayV2Authorizer_' ACCTEST_PARALLELISM=2 ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./aws -v -count 1 -parallel 2 -run=TestAccAWSAPIGatewayV2Authorizer_ -timeout 120m === RUN TestAccAWSAPIGatewayV2Authorizer_basic === PAUSE TestAccAWSAPIGatewayV2Authorizer_basic === RUN TestAccAWSAPIGatewayV2Authorizer_disappears === PAUSE TestAccAWSAPIGatewayV2Authorizer_disappears === RUN TestAccAWSAPIGatewayV2Authorizer_Credentials === PAUSE TestAccAWSAPIGatewayV2Authorizer_Credentials === RUN TestAccAWSAPIGatewayV2Authorizer_JWT === PAUSE TestAccAWSAPIGatewayV2Authorizer_JWT === RUN TestAccAWSAPIGatewayV2Authorizer_HttpApiLambdaRequestAuthorizer_InitialMissingCacheTTL === PAUSE TestAccAWSAPIGatewayV2Authorizer_HttpApiLambdaRequestAuthorizer_InitialMissingCacheTTL === RUN TestAccAWSAPIGatewayV2Authorizer_HttpApiLambdaRequestAuthorizer_InitialZeroCacheTTL === PAUSE TestAccAWSAPIGatewayV2Authorizer_HttpApiLambdaRequestAuthorizer_InitialZeroCacheTTL === CONT TestAccAWSAPIGatewayV2Authorizer_basic === CONT TestAccAWSAPIGatewayV2Authorizer_HttpApiLambdaRequestAuthorizer_InitialMissingCacheTTL --- PASS: TestAccAWSAPIGatewayV2Authorizer_basic (39.77s) === CONT TestAccAWSAPIGatewayV2Authorizer_HttpApiLambdaRequestAuthorizer_InitialZeroCacheTTL --- PASS: TestAccAWSAPIGatewayV2Authorizer_HttpApiLambdaRequestAuthorizer_InitialMissingCacheTTL (88.17s) === CONT TestAccAWSAPIGatewayV2Authorizer_Credentials --- PASS: TestAccAWSAPIGatewayV2Authorizer_HttpApiLambdaRequestAuthorizer_InitialZeroCacheTTL (73.00s) === CONT TestAccAWSAPIGatewayV2Authorizer_JWT --- PASS: TestAccAWSAPIGatewayV2Authorizer_Credentials (86.61s) === CONT TestAccAWSAPIGatewayV2Authorizer_disappears --- PASS: TestAccAWSAPIGatewayV2Authorizer_JWT (90.80s) === CONT TestAccAWSAPIGatewayV2Authorizer_disappears resource_aws_apigatewayv2_authorizer_test.go:58: [INFO] Got non-empty plan, as expected --- PASS: TestAccAWSAPIGatewayV2Authorizer_disappears (37.71s) PASS ok github.com/terraform-providers/terraform-provider-aws/aws 212.532s
@DrFaust92 And again please 😄. |
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 🎸
--- PASS: TestAccAWSAPIGatewayV2Authorizer_basic (81.37s)
--- PASS: TestAccAWSAPIGatewayV2Authorizer_disappears (79.41s)
--- PASS: TestAccAWSAPIGatewayV2Authorizer_Credentials (174.93s)
--- PASS: TestAccAWSAPIGatewayV2Authorizer_JWT (123.23s)
--- PASS: TestAccAWSAPIGatewayV2Authorizer_HttpApiLambdaRequestAuthorizer_InitialMissingCacheTTL (176.62s)
--- PASS: TestAccAWSAPIGatewayV2Authorizer_HttpApiLambdaRequestAuthorizer_InitialZeroCacheTTL (127.48s)
LGTM! 🚀 Thanks @ewbankkit Verified Acceptance Tests Commercial (us-west-2) make testacc TEST=./aws TESTARGS='-run=TestAccAWSAPIGatewayV2Authorizer_'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSAPIGatewayV2Authorizer_ -timeout 120m
=== RUN TestAccAWSAPIGatewayV2Authorizer_basic
=== PAUSE TestAccAWSAPIGatewayV2Authorizer_basic
=== RUN TestAccAWSAPIGatewayV2Authorizer_disappears
=== PAUSE TestAccAWSAPIGatewayV2Authorizer_disappears
=== RUN TestAccAWSAPIGatewayV2Authorizer_Credentials
=== PAUSE TestAccAWSAPIGatewayV2Authorizer_Credentials
=== RUN TestAccAWSAPIGatewayV2Authorizer_JWT
=== PAUSE TestAccAWSAPIGatewayV2Authorizer_JWT
=== RUN TestAccAWSAPIGatewayV2Authorizer_HttpApiLambdaRequestAuthorizer_InitialMissingCacheTTL
=== PAUSE TestAccAWSAPIGatewayV2Authorizer_HttpApiLambdaRequestAuthorizer_InitialMissingCacheTTL
=== RUN TestAccAWSAPIGatewayV2Authorizer_HttpApiLambdaRequestAuthorizer_InitialZeroCacheTTL
=== PAUSE TestAccAWSAPIGatewayV2Authorizer_HttpApiLambdaRequestAuthorizer_InitialZeroCacheTTL
=== CONT TestAccAWSAPIGatewayV2Authorizer_basic
=== CONT TestAccAWSAPIGatewayV2Authorizer_HttpApiLambdaRequestAuthorizer_InitialMissingCacheTTL
=== CONT TestAccAWSAPIGatewayV2Authorizer_disappears
=== CONT TestAccAWSAPIGatewayV2Authorizer_Credentials
=== CONT TestAccAWSAPIGatewayV2Authorizer_JWT
=== CONT TestAccAWSAPIGatewayV2Authorizer_HttpApiLambdaRequestAuthorizer_InitialZeroCacheTTL
--- PASS: TestAccAWSAPIGatewayV2Authorizer_basic (56.83s)
--- PASS: TestAccAWSAPIGatewayV2Authorizer_JWT (60.69s)
--- PASS: TestAccAWSAPIGatewayV2Authorizer_HttpApiLambdaRequestAuthorizer_InitialZeroCacheTTL (67.68s)
=== CONT TestAccAWSAPIGatewayV2Authorizer_disappears
resource_aws_apigatewayv2_authorizer_test.go:58: [INFO] Got non-empty plan, as expected
--- PASS: TestAccAWSAPIGatewayV2Authorizer_disappears (73.71s)
--- PASS: TestAccAWSAPIGatewayV2Authorizer_HttpApiLambdaRequestAuthorizer_InitialMissingCacheTTL (94.86s)
--- PASS: TestAccAWSAPIGatewayV2Authorizer_Credentials (100.59s)
PASS
ok github.com/terraform-providers/terraform-provider-aws/aws 107.746s Verified Acceptance Tests GovCloud (us-gov-west-1) make testacc TEST=./aws TESTARGS='-run=TestAccAWSAPIGatewayV2Authorizer_'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSAPIGatewayV2Authorizer_ -timeout 120m
=== RUN TestAccAWSAPIGatewayV2Authorizer_basic
=== PAUSE TestAccAWSAPIGatewayV2Authorizer_basic
=== RUN TestAccAWSAPIGatewayV2Authorizer_disappears
=== PAUSE TestAccAWSAPIGatewayV2Authorizer_disappears
=== RUN TestAccAWSAPIGatewayV2Authorizer_Credentials
=== PAUSE TestAccAWSAPIGatewayV2Authorizer_Credentials
=== RUN TestAccAWSAPIGatewayV2Authorizer_JWT
=== PAUSE TestAccAWSAPIGatewayV2Authorizer_JWT
=== RUN TestAccAWSAPIGatewayV2Authorizer_HttpApiLambdaRequestAuthorizer_InitialMissingCacheTTL
=== PAUSE TestAccAWSAPIGatewayV2Authorizer_HttpApiLambdaRequestAuthorizer_InitialMissingCacheTTL
=== RUN TestAccAWSAPIGatewayV2Authorizer_HttpApiLambdaRequestAuthorizer_InitialZeroCacheTTL
=== PAUSE TestAccAWSAPIGatewayV2Authorizer_HttpApiLambdaRequestAuthorizer_InitialZeroCacheTTL
=== CONT TestAccAWSAPIGatewayV2Authorizer_basic
=== CONT TestAccAWSAPIGatewayV2Authorizer_HttpApiLambdaRequestAuthorizer_InitialMissingCacheTTL
=== CONT TestAccAWSAPIGatewayV2Authorizer_JWT
=== CONT TestAccAWSAPIGatewayV2Authorizer_Credentials
=== CONT TestAccAWSAPIGatewayV2Authorizer_HttpApiLambdaRequestAuthorizer_InitialZeroCacheTTL
=== CONT TestAccAWSAPIGatewayV2Authorizer_disappears
resource_aws_apigatewayv2_authorizer_test.go:58: [INFO] Got non-empty plan, as expected
--- PASS: TestAccAWSAPIGatewayV2Authorizer_disappears (28.26s)
2020/09/23 11:21:29 [WARN] Truncating attribute path of 0 diagnostics for TypeSet
--- PASS: TestAccAWSAPIGatewayV2Authorizer_basic (47.08s)
--- PASS: TestAccAWSAPIGatewayV2Authorizer_HttpApiLambdaRequestAuthorizer_InitialMissingCacheTTL (61.40s)
--- PASS: TestAccAWSAPIGatewayV2Authorizer_Credentials (62.84s)
--- PASS: TestAccAWSAPIGatewayV2Authorizer_HttpApiLambdaRequestAuthorizer_InitialZeroCacheTTL (64.01s)
--- PASS: TestAccAWSAPIGatewayV2Authorizer_JWT (71.93s)
PASS
ok github.com/terraform-providers/terraform-provider-aws/aws 78.498s |
This has been released in version 3.8.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
Closes #15126.
Closes #15181.
Relates #13527.
Relates #14601.
Release note for CHANGELOG:
Output from acceptance testing: