former2 icon indicating copy to clipboard operation
former2 copied to clipboard

terraform resource aws_api_gateway_authorizer generated incorrect output

Open rorourke-iot opened this issue 1 year ago • 0 comments

The resource aws_api_gateway_authorizer was generated as

resource "aws_api_gateway_authorizer" "<terraform id>" {
    rest_api_id = "<api id>"
    name = "<name>"
    type = "TOKEN"
    AuthType = "custom"
    authorizer_uri = "<auth uri>"
    identity_source = "method.request.header.Authorization"
    identity_validation_expression = "Bearer (.*)"
    authorizer_result_ttl_in_seconds = 300
}

AuthType is not a valid terraform argument for this resource. According to the docs, there doesn't appear to be a mappable equivalent.

rorourke-iot avatar May 01 '23 14:05 rorourke-iot