-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
examples/region-shared-setup/credentials.network_account.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | ||
| } | ||
| } |