Check profiles¶
Confirm each CLI profile resolves to a different account before editing tfvars.
Phase 0 goal: three profiles, three distinct accounts. Account IDs shown are placeholders.
Print just the account ID for each profile:
for p in network dev sandbox; do
echo "$p -> $(aws sts get-caller-identity --profile "$p" --query Account --output text)"
done
network -> 123456789012
dev -> 234567890123
sandbox -> 345678901234
All three IDs must be different. Keep them — network needs them for
workload_account_ids.
If a check fails¶
Log the profile back in, then re-run the loop above:
aws sso login --profile network
Attempting to open your default browser.
...
Successfully logged into Start URL: https://d-xxxxxxxxxx.awsapps.com/start
aws sso login --profile dev
Successfully logged into Start URL: https://d-xxxxxxxxxx.awsapps.com/start
aws sso login --profile sandbox
Successfully logged into Start URL: https://d-xxxxxxxxxx.awsapps.com/start
Next: Build the hub.