Skip to content

Commit

Permalink
fix: Prioritizing streamnative_google_account_ids (#87)
Browse files Browse the repository at this point in the history
Signed-off-by: lili <lli@streamnative.io>
  • Loading branch information
urfreespace authored Jul 4, 2024
1 parent 2e506ee commit 409f5e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/aws/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ data "aws_iam_policy_document" "streamnative_bootstrap_access" {
}
condition {
test = "StringEquals"
values = var.streamnative_google_account_id != "" ? [var.streamnative_google_account_id] : var.streamnative_google_account_ids
values = length(var.streamnative_google_account_ids) > 0 ? var.streamnative_google_account_ids : [var.streamnative_google_account_id]
variable = "accounts.google.com:aud"
}
}
Expand Down Expand Up @@ -149,7 +149,7 @@ data "aws_iam_policy_document" "streamnative_management_access" {
}
condition {
test = "StringEquals"
values = var.streamnative_google_account_id != "" ? [var.streamnative_google_account_id] : var.streamnative_google_account_ids
values = length(var.streamnative_google_account_ids) > 0 ? var.streamnative_google_account_ids : [var.streamnative_google_account_id]
variable = "accounts.google.com:aud"
}
}
Expand Down

0 comments on commit 409f5e5

Please sign in to comment.