From 6e56c46260ad780140995ccb819abd53352a8d53 Mon Sep 17 00:00:00 2001 From: Arthur Gassner Date: Thu, 5 Dec 2019 19:22:46 +0000 Subject: [PATCH] Revert "Upgrade to Terraform 0.12" This reverts commit c3e62fff9eda39e8c696247f896e700fcdfb2611. --- iam.tf | 15 +++++---------- main.tf | 44 ++++++++++++++++++++------------------------ outputs.tf | 8 ++++---- variables.tf | 11 +++++------ 4 files changed, 34 insertions(+), 44 deletions(-) diff --git a/iam.tf b/iam.tf index 404547f..a480884 100644 --- a/iam.tf +++ b/iam.tf @@ -1,9 +1,5 @@ resource "aws_iam_role" "iam_for_lambda" { - name_prefix = replace( - replace(var.function_name, "/(.{0,32}).*/", "$1"), - "/^-+|-+$/", - "", - ) + name_prefix = "${replace(replace(var.function_name, "/(.{0,32}).*/", "$1"), "/^-+|-+$/", "")}" assume_role_policy = <