Atmos Auth and Identities for CI #110
Replies: 1 comment
-
|
Great question! Here's how the identity resolution works: 1 - Stack Identity ConfigurationEach stack defines which identity to use in its defaults under auth.identities. For example, in # Default identity for this account
# Profile determines what plat-dev/terraform resolves to (Permission Set vs IAM role)
auth:
identities:
plat-dev/terraform:
default: trueThis tells Atmos: "When running Terraform for any component in this stack, use the 2 - Profiles Define How to Assume IdentitiesProfiles are defined in the profiles/ directory, with each profile in its own folder containing an atmos.yaml: Set the active profile via 3 - The Naming Convention MattersIn the latest version of the reference architecture, identities follow the pattern: Your current profile has identities named differently: For this to work, either:
4 - Plan vs Apply ProfilesTypically you'd have two profiles:
The GitHub workflows set Docs |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
after setting up atmos auth....when running in github CI....how does the stack know which identity to use when it needs to assume a role per account?
I can set ATMOS_PROFILE=ci and it'll assume the default identity, but what happens when after
determine affected stacks...and it automatically kicks off TF plan...how does it know which identity to use?do i need to setup .atmos/profiles in each stack folder?
Profile CI
Beta Was this translation helpful? Give feedback.
All reactions