Closed WojciechTF closed 2 weeks ago
You should move these from the integration
key one level up to the "POST /updatetest"
:
authorization_type = "REQUEST"
authorizer_key = "hackyAuth"
See this example: https://github.com/terraform-aws-modules/terraform-aws-apigateway-v2/blob/6af44f5a90192660e519a3579fa81a7f2c73107d/examples/complete-http/main.tf#L74-L75
Ugh... Thank you - that worked.
One clarification, had to change the type to "CUSTOM"
Description
Running the below code creates the authorizer (you can see and manage it) but it does not attach it to the route. I have tried using the previous suggested fixes by adding
authorization_type = "REQUEST"
to the route section but it still doesnt work.Versions
Module version [Required]:
Terraform version: 1.8.5
Provider version(s):
provider registry.terraform.io/hashicorp/archive v2.4.2
provider registry.terraform.io/hashicorp/aws v5.53.0
provider registry.terraform.io/hashicorp/external v2.3.3
provider registry.terraform.io/hashicorp/local v2.5.1
provider registry.terraform.io/hashicorp/null v3.2.2
Reproduction Code [Required]
Steps to reproduce the behavior:
terraform init && terraform apply
No Yes init && apply ## Expected behavior I need to attach the lambda authorizer to the gwy route ## Actual behavior authorizer is created but not attached - aws console verified