Skip to content

Commit d659fc7

Browse files
fix: improve QuickSight user name handling for non-IAM identities
1 parent 2c9dcb6 commit d659fc7

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
@@ -17,7 +17,7 @@ resource "aws_quicksight_user" "users" {
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
20-
user_name = each.value.identity_type == "QUICKSIGHT" ? try(each.value.user_name, null) : null
20+
user_name = each.value.identity_type == "QUICKSIGHT" ? split("@", each.key)[1] : null
2121
user_role = try(each.value.role, null)
2222

2323
lifecycle {

0 commit comments

Comments
 (0)