diff --git a/infrastructure/modules/iam/iam_lambda.tf b/infrastructure/modules/iam/iam_lambda.tf new file mode 100644 index 0000000..2ec9c4c --- /dev/null +++ b/infrastructure/modules/iam/iam_lambda.tf @@ -0,0 +1,48 @@ +# ------------------------------------------------ +# CREATING POLICIES AND ROLES FOR +# LAMBDA f(x) +# ------------------------------------------------ + +variable "app_name" { } +variable "policy_file" { } + +# CREATING EXECUTION ROLE + +resource "aws_iam_role" "exec_role" { + name = "${var.app_name}-lambda-exec_role" + assume_role_policy = <