Dan Miller (Cloud Posse)
05/18/2026, 6:43 PM!store with auth? I opened an issue, but I believe there are some bugs. Probably needs the same treatment as the !terraform.state functionsDan Miller (Cloud Posse)
05/18/2026, 6:44 PMErik Osterman (Cloud Posse)
05/18/2026, 7:45 PMErik Osterman (Cloud Posse)
05/18/2026, 7:45 PMErik Osterman (Cloud Posse)
05/18/2026, 7:45 PMDan Miller (Cloud Posse)
05/18/2026, 7:57 PM# atmos.yaml
stores:
ssm/core-root:
type: aws-ssm-parameter-store
identity: core-root
options:
region: us-east-1
prefix: /atmos/
ssm/tembo-dev:
type: aws-ssm-parameter-store
identity: tembo-dev
options:
region: us-east-1
prefix: /atmos/
then in stacks, select the store:
# stacks/orgs/aws/tembo/dev/_defaults.yaml
terraform:
hooks:
store-outputs:
name: ssm/tembo-dev
and to pull from a different account:
vars:
output_key: !store ssm/<account> <source-component> <output-key>Andriy Knysh (Cloud Posse)
05/18/2026, 8:07 PMAndriy Knysh (Cloud Posse)
05/18/2026, 8:08 PMAndriy Knysh (Cloud Posse)
05/18/2026, 8:26 PMcould you share an example of how to set an identity for store? I was using this post from February for referenceis the example working for you (besides the issues you reported)? Not sure if you are asking because you think the example is not correct, or it's not working b/c of the issues
Andriy Knysh (Cloud Posse)
05/18/2026, 8:29 PMAndriy Knysh (Cloud Posse)
05/18/2026, 8:32 PMDan Miller (Cloud Posse)
05/18/2026, 8:33 PMhooks:
store-outputs:
command: store
events:
- after-terraform-apply
name: ssm/tembo-dev
outputs:
vpc_flow_logs_bucket_arn: .vpc_flow_logs_bucket_arn
vpc_flow_logs_bucket_id: .vpc_flow_logs_bucket_id
Store config:
stores:
ssm/tembo-dev:
type: aws-ssm-parameter-store
identity: tembo-dev
options:
region: us-east-1
prefix: /atmos/
Trace shows the hook is completely silent — no "Fetching" output, no errors. atmos describe component resolves the hooks correctly but they never execute:
DEBU Running CI hooks event=after.terraform.apply force_ci=false
DEBU CI provider not detected provider=generic
DEBU CI platform not detected, skipping CI hooks error="CI provider not detected"
DEBU Telemetry event enqueued
2. Generic stores make it further, but are caught by the CI check
hooks:
store-outputs:
command: store
events:
- after-terraform-apply
name: ssm # <---- generic store, no identity
outputs:
vpc_flow_logs_bucket_arn: .vpc_flow_logs_bucket_arn
vpc_flow_logs_bucket_id: .vpc_flow_logs_bucket_id
Same trace — CI hooks intercept the event and skip because no CI provider is detected locally. Store hooks never fire.
3. When CI is disabled, generic stores make it further, but then fail on auth
With ci.enabled: false, the hook fires but can't read terraform outputs:
atmos terraform apply vpc-flow-logs-bucket -s tembo-use1-dev -- -auto-approve
...
Fetching vpc_flow_logs_bucket_arn output from vpc-flow-logs-bucket in tembo-use1-dev
✗ Fetching vpc_flow_logs_bucket_arn output from vpc-flow-logs-bucket in tembo-use1-dev
Error: failed to retrieve terraform outputs: hook "ssm" (event "after.terraform.apply")
failed to get terraform output "vpc_flow_logs_bucket_arn" for component
"vpc-flow-logs-bucket" in stack "tembo-use1-dev":
failed to retrieve terraform outputs: exit status 1
Error: No valid credential sources found
4. Finally, with CI disabled, generic stores, and running with predefined auth, it works
atmos auth exec --identity tembo-dev -- atmos terraform apply vpc-flow-logs-bucket -s tembo-use1-dev -- -auto-approve
...
✓ Fetching vpc_flow_logs_bucket_arn output from vpc-flow-logs-bucket in tembo-use1-dev
✓ Fetching vpc_flow_logs_bucket_id output from vpc-flow-logs-bucket in tembo-use1-devDan Miller (Cloud Posse)
05/18/2026, 8:33 PMDan Miller (Cloud Posse)
05/18/2026, 8:39 PM!terraform.stateAndriy Knysh (Cloud Posse)
05/18/2026, 8:40 PMDan Miller (Cloud Posse)
05/18/2026, 8:42 PMDan Miller (Cloud Posse)
05/18/2026, 8:43 PMAndriy Knysh (Cloud Posse)
05/18/2026, 8:48 PMMiguel Zablah
05/19/2026, 12:33 PMMiguel Zablah
05/19/2026, 12:34 PMDan Miller (Cloud Posse)
05/19/2026, 1:50 PMDan Miller (Cloud Posse)
05/19/2026, 1:50 PMDan Miller (Cloud Posse)
05/19/2026, 1:52 PM-s mystackname, the hook fires correctly
if I dont pass -s and then instead select the stack with the choice prompt, the hook doesnt fire!Dan Miller (Cloud Posse)
05/19/2026, 1:55 PMstores:
ssm:
type: aws-ssm-parameter-store
identity: dev
options:
region: us-east-1
prefix: /atmos/
identity dev is correctly assumed, but identity dev cant access tfstate and therefore fails on "failed to retrieve terraform outputs"Dan Miller (Cloud Posse)
05/19/2026, 1:57 PMstores:
ssm:
type: aws-ssm-parameter-store
options:
region: us-east-1
prefix: /atmos/
then start a shell in the account I want to use for store:
atmos auth shell --identity dev
then run the command (WITH -s stack)
atmos terraform apply vpc-flow-logs-bucket -s dev
it works!Andriy Knysh (Cloud Posse)
05/19/2026, 1:58 PMDan Miller (Cloud Posse)
05/19/2026, 2:34 PMDan Miller (Cloud Posse)
05/19/2026, 2:38 PM