Last active
August 9, 2020 15:11
-
-
Save DanielDaCosta/bb36aa6ca231dadc94ef1074c7b694c7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| data "aws_s3_bucket_object" "lambda_sms" { | |
| bucket = var.s3_bucket | |
| key = "lambda-sms.zip" | |
| } | |
| module "lambda_sms" { | |
| source = "[email protected]:DanielDaCosta/lambda-module.git" # Path to your lambda-module | |
| lambda_name = var.lambda_sms | |
| s3_bucket = var.s3_bucket | |
| s3_key = "lambda-sms.zip" | |
| s3_object_version = data.aws_s3_bucket_object.lambda_sms.version_id | |
| environment = var.environment | |
| name = var.name | |
| description = "Send SMS to user" | |
| role = data.aws_iam_role.lambda_exec_sms.arn | |
| runtime = "python3.7" | |
| reserved_concurrent_executions = 30 | |
| vpc_subnet_ids = tolist(data.aws_subnet_ids.private.ids) | |
| vpc_security_group_ids = tolist([data.aws_security_group.postgres.id, aws_security_group.lambda.id]) | |
| environment_variables = { | |
| ENV = local.name_dash | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment