Skip to content

Commit

Permalink
add creds
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Mar 21, 2023
1 parent ff6ebdf commit 09f0d3e
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions examples/region-shared-setup/credentials.network_account.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
variable "os_username" {
description = "OS username from environment variable, ideally as $USER"
type = string
default = null
}

variable "network_role_arn" {
description = "AWS Role ARN of network account where shared resoruces are defined. AssumeRole will be used from this caller account."
type = string
# shluld be a different one per environment (prod, sa) in (gov, ew) in (ent, lab)
default = "arn:aws-us-gov:iam::057405694017:role/r-inf-tf-remote-shared-vpc"
}

provider "aws" {
alias = "network_account"
region = var.region
profile = var.profile
assume_role {
role_arn = var.network_role_arn
session_name = var.os_username
}
}

0 comments on commit 09f0d3e

Please sign in to comment.