Alexandre Feblot
03/25/2026, 11:43 AMatmos list affected --ref refs/heads/main fails to authenticate to the state bucket.
⢠I'm authenticated using "atmos auth" with an account admin identity set as the default one
⢠atmos tf plan ... works fine
⢠using atmos 1.210.0
Atmos.yaml auth section:
auth:
providers:
my-sso:
kind: aws/iam-identity-center
start_url: <https://mycorp.awsapps.com/start>
region: eu-west-1
default: true
identities:
account-admin:
kind: aws/permission-set
via:
provider: my-sso
principal:
name: AdministratorAccess
account:
id: "000000000000"
default: true
The state bucket declaration:
terraform:
backend_type: s3
backend:
s3:
acl: "bucket-owner-full-control"
encrypt: false
use_lockfile: true
bucket: "my-state-bucket"
key: "terraform.tfstate"
region: eu-west-1
provision:
backend:
enabled: true
workdir:
enabled: true
Debug log:
DEBU Found component 'mycomponent' in the stack 'mystack' in the stack manifest 'path/to/mycomponent'
DEBU Resolved component path type=terraform component=mycomponent resolved_path=.../components/terraform/mycomponent base_path=.../components/terraform env_override=false
DEBU Component has auth config with default identity, creating component-specific AuthManager component=mycomponent stack=mystack
DEBU CreateAndAuthenticateManager called identityName="" hasAuthConfig=true
DEBU Loading stack configs for auth identity defaults
DEBU Loading stack files for auth defaults count=6
DEBU No default identities found in stack configs
DEBU System keyring not available, using no-op keyring (will use credentials from files/environment) error="system keyring not available: The name org.freedesktop.secrets was not provided by any .service files"
DEBU Auth realm computed realm=1ad85013bbd5d0d4 source=config
DEBU System keyring not available, using no-op keyring (will use credentials from files/environment) error="system keyring not available: The name org.freedesktop.secrets was not provided by any .service files"
DEBU Auth realm computed realm=1ad85013bbd5d0d4 source=config
DEBU Authentication chain discovered identity=account-admin chainLength=2 chain="[my-sso account-admin]"
DEBU Checking cached credentials chainIndex=1 identityName=account-admin
DEBU Noop keyring: credentials managed externally alias=account-admin realm=1ad85013bbd5d0d4
DEBU Credentials not in keyring, trying identity storage identity=account-admin
DEBU Loading AWS credentials from files credentials_file=~/.config/atmos/1ad85013bbd5d0d4/aws/my-sso/credentials config_file=~/.config/atmos/1ad85013bbd5d0d4/aws/my-sso/config profile=account-admin region=eu-west-1
DEBU Loaded expiration from credentials file metadata profile=account-admin expiration=2026-03-25T15:37:02+01:00
DEBU Successfully loaded AWS credentials from files profile=account-admin region=eu-west-1 has_session_token=true has_expiration=true
DEBU Successfully loaded credentials from identity storage identity=account-admin
DEBU Found valid cached credentials chainIndex=1 identityName=account-admin expiration="2026-03-25 15:37:02 +0100 CET"
DEBU Found valid cached credentials validFromIndex=1 chainStep=account-admin
DEBU Noop keyring: credentials managed externally alias=account-admin realm=1ad85013bbd5d0d4
DEBU Credentials not in keyring, trying identity storage identity=account-admin
DEBU Loading AWS credentials from files credentials_file=~/.config/atmos/1ad85013bbd5d0d4/aws/my-sso/credentials config_file=~/.config/atmos/1ad85013bbd5d0d4/aws/my-sso/config profile=account-admin region=eu-west-1
DEBU Loaded expiration from credentials file metadata profile=account-admin expiration=2026-03-25T15:37:02+01:00
DEBU Successfully loaded AWS credentials from files profile=account-admin region=eu-west-1 has_session_token=true has_expiration=true
DEBU Successfully loaded credentials from identity storage identity=account-admin
DEBU Starting authentication from cached credentials startIndex=1 identity=account-admin
DEBU Authenticating identity chain chainLength=2 startIndex=2 chain="[my-sso account-admin]"
DEBU Writing AWS credentials provider=my-sso identity=account-admin credentials_file=~/.config/atmos/1ad85013bbd5d0d4/aws/my-sso/credentials has_session_token=true
DEBU Acquired file lock lock_file=~/.config/atmos/1ad85013bbd5d0d4/aws/my-sso/credentials.lock
DEBU Writing credentials to file profile=account-admin access_key_prefix=ASIA... has_session_token=true expiration=2026-03-25T15:37:02+01:00
DEBU Successfully wrote AWS credentials provider=my-sso identity=account-admin credentials_file=~/.config/atmos/1ad85013bbd5d0d4/aws/my-sso/credentials
DEBU Writing AWS config provider=my-sso identity=account-admin config_file=~/.config/atmos/1ad85013bbd5d0d4/aws/my-sso/config region=eu-west-1 output_format=""
DEBU Acquired file lock lock_file=~/.config/atmos/1ad85013bbd5d0d4/aws/my-sso/config.lock
DEBU Successfully wrote AWS config provider=my-sso identity=account-admin config_file=~/.config/atmos/1ad85013bbd5d0d4/aws/my-sso/config
DEBU Set AWS auth context profile=account-admin credentials=~/.config/atmos/1ad85013bbd5d0d4/aws/my-sso/credentials config=~/.config/atmos/1ad85013bbd5d0d4/aws/my-sso/config region=eu-west-1
DEBU Preparing AWS environment for Atmos-managed credentials profile=account-admin credentials_file=~/.config/atmos/1ad85013bbd5d0d4/aws/my-sso/credentials config_file=~/.config/atmos/1ad85013bbd5d0d4/aws/my-sso/config
DEBU Prepared AWS environment profile=account-admin
DEBU Deleted legacy keyring entry (pre-realm) alias=my-sso
DEBU Deleted legacy keyring entry (pre-realm) alias=account-admin
DEBU Skipping keyring cache for session tokens in WhoamiInfo identity=account-admin
DEBU Created component-specific AuthManager component=mycomponent stack=mystack identityChain="[my-sso account-admin]"
DEBU Populated AuthContext from AuthManager for template functions
DEBU Found component 'mycomponent' in the stack 'mystack' in the stack manifest 'path/to/mycomponent'
DEBU Resolved component path type=terraform component=mycomponent resolved_path=.../components/terraform/mycomponent base_path=.../components/terraform env_override=false
DEBU Using standard AWS SDK credential resolution (no auth context provided)
DEBU Using explicit region region=eu-west-1
DEBU Loading AWS SDK config num_options=1
DEBU Successfully loaded AWS SDK config region=eu-west-1
DEBU Failed to read Terraform state file from the S3 bucket attempt=1 file=mycomponent/mystack/terraform.tfstate bucket=my-state-bucket error="operation error S3: GetObject, get identity: get credentials: failed to refresh cached credentials, no EC2 IMDS role found, operation error ec2imds: GetMetadata, request canceled, context deadline exceeded" backoff=1sErik Osterman (Cloud Posse)
03/25/2026, 12:28 PMAlexandre Feblot
03/25/2026, 12:34 PMErik Osterman (Cloud Posse)
03/25/2026, 12:47 PMErik Osterman (Cloud Posse)
03/25/2026, 12:47 PMErik Osterman (Cloud Posse)
03/25/2026, 12:48 PMAlexandre Feblot
03/25/2026, 2:20 PMErik Osterman (Cloud Posse)
03/25/2026, 4:24 PMErik Osterman (Cloud Posse)
03/25/2026, 4:24 PMAlexandre Feblot
03/25/2026, 4:41 PM-i admin-account does not.
After having installed atmos skills, copilot tells me:
The/-iflag is not supported on--identity(oratmos list affected). Looking at the skill documentation, the identity flag is only available on specific commands â the introspection docs show it onatmos describe affectedand the terraform commands, but not on the affected commands.atmos describe component
Alexandre Feblot
03/25/2026, 4:45 PMErik Osterman (Cloud Posse)
03/25/2026, 5:31 PMErik Osterman (Cloud Posse)
03/25/2026, 5:39 PMDan Hansen
03/31/2026, 5:30 PMDan Hansen
03/31/2026, 5:42 PMReadTerraformBackendGCS function not using the auth context?
https://github.com/cloudposse/atmos/blob/main/internal/terraform_backend/terraform_backend_s3.go#L153-L157
vs https://github.com/cloudposse/atmos/blob/main/internal/terraform_backend/terraform_backend_gcs.go#L132-L136Erik Osterman (Cloud Posse)
03/31/2026, 6:27 PMErik Osterman (Cloud Posse)
03/31/2026, 6:28 PMDan Hansen
03/31/2026, 10:05 PMatmos auth shell. atmos auth env is not configuring the GOOGLE_APPLICATION_CREDENTIALS environment variable for us