- Current stable version: 1.0.2
- REF: https://registry.terraform.io/modules/fukubaka0825/lambda-proxy-integration/aws/1.0.2
- REF: https://qiita.com/fukubaka0825/items/d49d77fc5738b1846bb9
terraform 0.12.0+
module "sample_api"{
source = "fukubaka0825/lambda-proxy-integration/aws"
version = "1.0.2"
apigw_name = "sample-api"
function_name = "sample-api"
lambda_role = module.lambda_role.iam_role_arn
// The repo's name and object key where source code artifact exists
s3_bucket = data.terraform_remote_state.storage.outputs.s3_serverless_app_bucket.name
s3_key = "lambda/sample.zip"
// If you want to use vpc lambda,required
security_group_ids = [module.http_sg.security_group_id]
subnet_ids = module.vpc.app_subnets
}
output "invoke_url" {
value = "${module.lambda_proxy.invoke_url}"
}