Skip to content
This repository was archived by the owner on Mar 29, 2023. It is now read-only.

Commit 764c09c

Browse files
committed
Use a separate variable for instance role path
1 parent aa969fc commit 764c09c

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

modules/couchbase-cluster/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ resource "aws_iam_instance_profile" "instance_profile" {
167167
resource "aws_iam_role" "instance_role" {
168168
name_prefix = var.cluster_name
169169
assume_role_policy = data.aws_iam_policy_document.instance_role.json
170-
path = var.instance_profile_path
170+
path = var.instance_role_path
171171
permissions_boundary = var.instance_permissions_boundary
172172

173173
# aws_iam_instance_profile.instance_profile in this module sets create_before_destroy to true, which means

modules/couchbase-cluster/variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,12 @@ variable "instance_profile_path" {
164164
default = "/"
165165
}
166166

167+
variable "instance_role_path" {
168+
description = "Path in which to create the IAM instance role."
169+
type = string
170+
default = "/"
171+
}
172+
167173
variable "instance_permissions_boundary" {
168174
description = "The ARN of the policy that is used to set the permissions boundary for the instance profile role"
169175
type = string

0 commit comments

Comments
 (0)