Back to AWS Terraform templates index <–
AWS API Gateway
Provides an API Gateway.
Template Locations
Online documentation
Template reference
Service description
Related AWS Resources
| Resource | Description | Automation |
|---|
module "aws_api_gateway_rest_api" {
name = "aws_console_name"
rest_api_id = aws_api_gateway_rest_api.main.id
resource_id = aws_api_gateway_resource.resource.id
http_method = "GET"
authorization = "NONE"
integration_http_method = "POST"
type = "AWS_PROXY"
statement_id = "AllowExecutionFromAPIGateway"
action = "lambda:InvokeFunction"
principal = "apigateway.amazonaws.com"
function_name = data.aws_lambda_function.lambda.function_name
function_name = "function_console_example"
}