This repository contains AWS cross-account management for the Technology Transform Service (TTS) and is managed by the TTS Technology Portfolio within the General Services Administration.
Jump account: 133032889584
-
Set up AWS credentials for jump account.
-
Clone this repository.
-
Set up Terraform.
cd aws-admin/terraform terraform init
-
Confirm the AWS connection works.
terraform plan
Based on these steps.
- Log in to the jump account using IAM
- Use the
Switch role URL
from the AWS accounts list
Terraform will generate an AWS config file.
-
Run the following from this directory (the
-target
part is optional):terraform apply -target=local_file.aws_config
-
Copy the config file.
mkdir -p ~/.aws cp aws_config.ini ~/.aws/config
-
Use the named profiles with the AWS CLI or other tools.
Budgets are listed by business unit in two places:
- The AWS accounts spreadsheet
- AWS Systems Manager Parameter Store
To add a new one:
- Sign into the payer account
- Go to the Parameter Store
- Create a parameter
- For
Name
, use/tts/aws-budget/<BUSINESS UNIT>
- Make
<BUSINESS UNIT>
lower-case, alphanumeric, with hyphens
- Make
- For
Value
, enter the monthly budget as an integer
- For
- Mimic use of the
business_unit
module
Parameter Store is used to keep the values private.