From 54539702ba37b5b155848956ab876f05c6807146 Mon Sep 17 00:00:00 2001 From: Nat Welch Date: Mon, 28 Jun 2021 10:36:47 -0400 Subject: [PATCH] fix: remove create_bus as a blocker for role_arn (#13) --- README.md | 2 +- iam.tf | 2 +- variables.tf | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index b718f89..c386f90 100644 --- a/README.md +++ b/README.md @@ -320,7 +320,7 @@ No modules. | [create\_archives](#input\_create\_archives) | Controls whether EventBridge Archive resources should be created | `bool` | `false` | no | | [create\_bus](#input\_create\_bus) | Controls whether EventBridge Bus resource should be created | `bool` | `true` | no | | [create\_permissions](#input\_create\_permissions) | Controls whether EventBridge Permission resources should be created | `bool` | `true` | no | -| [create\_role](#input\_create\_role) | Controls whether IAM role for Lambda Function should be created | `bool` | `true` | no | +| [create\_role](#input\_create\_role) | Controls whether IAM roles should be created | `bool` | `true` | no | | [create\_rules](#input\_create\_rules) | Controls whether EventBridge Rule resources should be created | `bool` | `true` | no | | [create\_targets](#input\_create\_targets) | Controls whether EventBridge Target resources should be created | `bool` | `true` | no | | [ecs\_target\_arns](#input\_ecs\_target\_arns) | The Amazon Resource Name (ARN) of the AWS ECS Tasks you want to use as EventBridge targets | `list(string)` | `[]` | no | diff --git a/iam.tf b/iam.tf index d0f1186..fd4f81e 100644 --- a/iam.tf +++ b/iam.tf @@ -1,5 +1,5 @@ locals { - create_role = var.create && var.create_bus && var.create_role + create_role = var.create && var.create_role # Defaulting to "*" (an invalid character for an IAM Role name) will cause an error when # attempting to plan if the role_name and bus_name are not set. This is a workaround diff --git a/variables.tf b/variables.tf index a71c99b..fdd678a 100644 --- a/variables.tf +++ b/variables.tf @@ -5,7 +5,7 @@ variable "create" { } variable "create_role" { - description = "Controls whether IAM role for Lambda Function should be created" + description = "Controls whether IAM roles should be created" type = bool default = true }