From 010a4c641fb7804cf3effbfb28d2405c97bc9fc7 Mon Sep 17 00:00:00 2001 From: Vedant Pareek Date: Tue, 28 Nov 2023 11:34:40 +0530 Subject: [PATCH] Added support for platform_feature_enable_override --- iam.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iam.tf b/iam.tf index 3689c8d..9644252 100644 --- a/iam.tf +++ b/iam.tf @@ -105,7 +105,7 @@ resource "aws_iam_policy" "truefoundry_platform_feature_user_ecr_policy" { resource "aws_iam_role" "truefoundry_platform_feature_iam_role" { count = var.platform_feature_enabled ? 1 : 0 - name = "${local.truefoundry_unique_name}-iam-role" + name = var.platform_role_enable_override ? var.platform_role_override_name : "${local.truefoundry_unique_name}-iam-role" description = "IAM role for TrueFoundry to access S3 bucket, SSM and ECR" force_detach_policies = true assume_role_policy = jsonencode({