Skip to content

Instantly share code, notes, and snippets.

@KyMidd
Created May 1, 2023 01:19
Show Gist options
  • Select an option

  • Save KyMidd/ffefbcf350d7eaa40993ff614790ad85 to your computer and use it in GitHub Desktop.

Select an option

Save KyMidd/ffefbcf350d7eaa40993ff614790ad85 to your computer and use it in GitHub Desktop.
resource "aws_api_gateway_integration" "github_cop_api_gateway_lambda_integration" {
rest_api_id = aws_api_gateway_rest_api.github_cop_api_gateway.id
resource_id = aws_api_gateway_method.github_cop_api_gateway_method.resource_id
http_method = aws_api_gateway_method.github_cop_api_gateway_method.http_method
integration_http_method = "POST"
type = "AWS_PROXY"
uri = aws_lambda_function.GitHubCop_New_Repo_Trigger.invoke_arn
}
resource "aws_api_gateway_integration" "github_cop_api_gateway_lambda_root" {
rest_api_id = aws_api_gateway_rest_api.github_cop_api_gateway.id
resource_id = aws_api_gateway_method.github_cop_api_gateway_proxy_root.resource_id
http_method = aws_api_gateway_method.github_cop_api_gateway_proxy_root.http_method
integration_http_method = "POST"
type = "AWS_PROXY"
uri = aws_lambda_function.GitHubCop_New_Repo_Trigger.invoke_arn
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment