Skip to content

Commit

Permalink
logic finally fixed, using another env var
Browse files Browse the repository at this point in the history
  • Loading branch information
zMynxx committed Mar 31, 2024
1 parent 8889dab commit 8700d04
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions infrastructure-live/01234567890/provider.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -75,17 +75,17 @@ locals {
region = "${local.region}"
# Web Identity Role Federation only used in CI/CD
assume_role_with_web_identity {
role_arn = "arn:aws:iam::${local.account_id}:role/${local.env}.terraform_bot.role"
session_name = "Pipeline-Session"
duration = "0h20m0s"
web_identity_token = get_env("AWS_SESSION_TOKEN", "")
# assume_role_with_web_identity {
# role_arn = "arn:aws:iam::${local.account_id}:role/${local.env}.terraform_bot.role"
# session_name = "Pipeline-Session"
# duration = "0h20m0s"
# web_identity_token = get_env("AWS_SESSION_TOKEN", "")
# }
assume_role {
role_arn = "arn:aws:iam::${local.account_id}:role/${local.env}.terraform_bot.role"
session_name = "Pipeline-Session"
duration = "0h20m0s"
}
# # assume_role {
# role_arn = "arn:aws:iam::${local.account_id}:role/${local.env}.terraform_bot.role"
# session_name = "Pipeline-Session"
# duration = "0h20m0s"
# }
Expand Down

0 comments on commit 8700d04

Please sign in to comment.