Skip to content

Commit

Permalink
Make lambda function name unique
Browse files Browse the repository at this point in the history
  • Loading branch information
sclausson committed Feb 27, 2019
1 parent 31fc7e0 commit f6afb54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ data "archive_file" "index" {
resource "aws_lambda_function" "lambda" {
runtime = "python2.7"
filename = "${path.module}/files/index.zip"
function_name = "ecs-instance-draining-on-scale-in"
function_name = "${var.autoscaling_group_name}-ecs-instance-draining-on-scale-in"
role = "${aws_iam_role.lambda.arn}"
handler = "index.lambda_handler"

Expand Down

0 comments on commit f6afb54

Please sign in to comment.