terraform.aws-baseline-infra/modules/ApplicationIntegration/apigw-lambda
2024-03-05 12:16:56 +08:00
..
examples UPD: updated variable definition and readme 2024-03-05 12:16:56 +08:00
main.tf UPD: updated apigw-lambda to support multiple resources (aka part_path). also added support for regional apigw 2024-03-05 11:50:02 +08:00
outputs.tf UPD: updated apigw-lambda to support multiple resources (aka part_path). also added support for regional apigw 2024-03-05 11:50:02 +08:00
README.md UPD: updated variable definition and readme 2024-03-05 12:16:56 +08:00
variables.tf UPD: updated variable definition and readme 2024-03-05 12:16:56 +08:00
versions.tf NEW: apigw-lambda module 2024-03-04 11:15:34 +08:00

Requirements

Name Version
terraform >= 1.3.0
aws >= 5.0

Providers

Name Version
aws >= 5.0
random n/a

Modules

No modules.

Resources

Name Type
aws_api_gateway_deployment.apigw-deployment resource
aws_api_gateway_integration.api-integration resource
aws_api_gateway_integration_response.integration-response resource
aws_api_gateway_method.api-method resource
aws_api_gateway_method_response.response_200 resource
aws_api_gateway_method_settings.apigw-method-settings resource
aws_api_gateway_resource.api-res resource
aws_api_gateway_rest_api.api resource
aws_api_gateway_rest_api_policy.api-policy resource
aws_api_gateway_stage.apigw-stage resource
aws_api_gateway_vpc_link.api-vpc-link resource
aws_cloudwatch_log_group.lambda-logs resource
aws_cloudwatch_log_group.this resource
aws_iam_role.lambda-exec-role resource
aws_iam_role_policy.this resource
aws_lambda_function.function resource
aws_lambda_permission.allow_api_gateway resource
aws_vpc_endpoint.apigw-vpcep resource
random_id.this resource
aws_caller_identity.this data source
aws_iam_policy_document.api-policy data source
aws_region.current data source
aws_vpc.vpc data source

Inputs

Name Description Type Default Required
apigw-security-group-id Security group id of apigateway string n/a yes
apigw-subnet-ids Subnet IDs of apigateway list(string) n/a yes
apigw-type Type of apigateway: private or regional string n/a yes
apigw-vpc-id VPC id of apigateway string n/a yes
apigw-vpc-link-target-arns Target arns for apigateway VPC link list(string) [] no
cloudwatchlog-retention Cloudwatch log group retention days number 14 no
create-vpc-link Set true to create vpc link for outbound access to specific targets bool n/a yes
cwl-cmk-key-id CMK arn for cloudwatch logs encryption string null no
description Description of apigateway string n/a yes
lambda-archive-file Path to lambda zip archive string n/a yes
lambda-main-function-name Main python file without the .py extension string n/a yes
lambda-runtime-version Lambda runtime version string "python3.12" no
name Name of apigateway string n/a yes
resources Apigateway resources (path_part)
map(object({
method = string
authorization = string
integration_type = string
content_handling = string
}))
n/a yes
stages apigateway stages
map(object({
description = string
variables = map(string)
}))
n/a yes

Outputs

Name Description
apigw-id n/a
apigw-vpc-endpoints n/a

Authorship

This module was developed by UPDATE_THIS.