title: Invalid authorizer ID specified. Setting the authorization type to JWT requires a valid JWT authorizer- Terraform
body: <p>I am trying to deploy a HTTP API via terraform and I keep getting an issue with my JWT Authorizer. I can't seem to figure out what is wrong with my code. I have looked through documentation but still can't seem to understand what I am doing wrong.</p>
  <p>authorizer.tf</p>
  <pre><code>resource &quot;aws_apigatewayv2_authorizer&quot; &quot;jwt_authorizer_bulk_import_s3&quot; {
    api_id           = aws_apigatewayv2_api.main.id
    authorizer_type  = &quot;JWT&quot;
    identity_sources = [&quot;$request.header.Authorization&quot;]
    name             = &quot;jwt-authorizer&quot;
  
    jwt_configuration {
      audience = [&quot;removed for now&quot;]
      issuer   = &quot;removed for now&quot;
    }
  }
  
  
  resource &quot;aws_apigatewayv2_integration&quot; &quot;bulk_import_s3&quot; {
    api_id           = aws_apigatewayv2_api.main.id
    integration_type = &quot;AWS_PROXY&quot;
  
    connection_type           = &quot;INTERNET&quot;
    description               = &quot;Processing Data lambda.&quot;
    integration_method        = &quot;POST&quot;
    integration_uri           = lookup(var.process_to_s3, &quot;invoke_arn&quot;)
  }
  
  resource &quot;aws_apigatewayv2_route&quot; &quot;process_to_s3&quot; {
    api_id             = aws_apigatewayv2_api.main.id
    route_key          = &quot;POST /process_to_s3/{proxy+}&quot;
    authorization_type = &quot;JWT&quot;
  
    target = &quot;integrations/${aws_apigatewayv2_integration.bulk_import_s3.id}&quot;
  }
  </code></pre>