Closed askaribragimov closed 1 year ago
UPD solved by using this advice https://github.com/hashicorp/terraform-provider-aws/issues/17497
added
integrations = {
...
"POST /apimethod" = {
...
authorization_type = "JWT" // added
authorizer_key = "user_pool"
}
(authorizer_type = "JWT"
still has to be present but it does not do the right thing anyway!)
So it might be necessary to add to the plugin the need to specify authorization_type
using authorizer_type
from the "authorizers" block
This issue has been automatically marked as stale because it has been open 30 days with no activity. Remove stale label or comment or this issue will be closed in 10 days
This issue was automatically closed because of stale in 10 days
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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Description
Trying to use this code (concern is about the authorizer):
Authorizer is created, but I get the error
The same authorizer is easily attached via Console, after which Terraform sees no changes to be made.
⚠️ Note
Before you submit an issue, please perform the following first:
.terraform
directory (! ONLY if state is stored remotely, which hopefully you are following that best practice!):rm -rf .terraform/
terraform init
Versions
Module version [Required]:
Terraform version:
Terraform v1.5.2 on windows_386
provider registry.terraform.io/hashicorp/aws v5.11.0
provider registry.terraform.io/hashicorp/external v2.3.1
provider registry.terraform.io/hashicorp/local v2.4.0
provider registry.terraform.io/hashicorp/null v3.2.1
provider registry.terraform.io/hashicorp/random v3.5.1
Provider version(s):
Terraform v1.5.2 on windows_386
provider registry.terraform.io/hashicorp/aws v5.11.0
provider registry.terraform.io/hashicorp/external v2.3.1
provider registry.terraform.io/hashicorp/local v2.4.0
provider registry.terraform.io/hashicorp/null v3.2.1
provider registry.terraform.io/hashicorp/random v3.5.1
Reproduction Code [Required]
Steps to reproduce the behavior:
Latest versions of provider and module were used.
Expected behavior
JWT authorizer is attached as shown in your documentation example.
I remind that in your readme you have
Actual behavior
JWT authorizer is created OK but is not attached as expected
Terminal Output Screenshot(s)
Additional context