Skip to content

Commit 2c9dcb6

Browse files
fix: error accessing empty tuple when not using IAM linked auth
1 parent ad9bd16 commit 2c9dcb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/destination/quicksights.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ resource "aws_quicksight_user" "users" {
1313
for_each = var.quicksight_users
1414

1515
email = each.key
16-
iam_arn = each.value.identity_type == "IAM" ? aws_iam_role.cudos_sso[0].arn : null
16+
iam_arn = each.value.identity_type == "IAM" ? try(aws_iam_role.cudos_sso[0].arn, null) : null
1717
identity_type = each.value.identity_type
1818
namespace = try(each.value.namespace, "default")
1919
session_name = each.value.identity_type == "IAM" ? each.key : null

0 commit comments

Comments
 (0)