Skip to content

Commit 8a3977e

Browse files
allow custom cluster admin arn to be set
1 parent c60b70f commit 8a3977e

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ locals {
156156
# better controlled by users through Terraform
157157
bootstrap_cluster_creator_admin_permissions = {
158158
cluster_creator = {
159-
principal_arn = data.aws_iam_session_context.current.issuer_arn
159+
principal_arn = var.custom_cluster_creator_admin_arn ? var.custom_cluster_creator_admin_arn : data.aws_iam_session_context.current.issuer_arn
160160
type = "STANDARD"
161161

162162
policy_associations = {

variables.tf

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

167+
variable "custom_cluster_creator_admin_arn" {
168+
description = "ARN of cluster creator to use instead of current role for access entry administrator"
169+
type = string
170+
default = ""
171+
}
172+
167173
################################################################################
168174
# KMS Key
169175
################################################################################

0 commit comments

Comments
 (0)