Skip to content
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

integration_http_method can only be POST for Lambda #3

Open
shahriar52 opened this issue Aug 9, 2024 · 1 comment
Open

integration_http_method can only be POST for Lambda #3

shahriar52 opened this issue Aug 9, 2024 · 1 comment

Comments

@shahriar52
Copy link

In the aws_api_gateway_integration resource definition, integration_http_method is derived as below,

integration_http_method = contains(["AWS", "AWS_PROXY", "HTTP", "HTTP_PROXY"], each.value.config.type) ? aws_api_gateway_method.this[each.key].http_method : null

That would be equal to the API Gateway resource method. For Lambda, that value can only be "POST".

Reference: https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/api_gateway_integration#integration_http_method

@theherk
Copy link
Owner

theherk commented Aug 11, 2024

That's true, and I set the method as such when using lambda. If you'd prefer the module have this logic, you can suggest a change, but I'm not sure it is needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants