shirkevich
02/06/2025, 8:01 PM# Get the `key` from the store of a `component` in the current stack
!store <component> <key>
# Get the `key` from the store of a `component` in a different stack
!store <component> <stack> <key>
...
while in test store name present:
https://github.com/cloudposse/atmos/blob/845aeb56cf9b530457856f64b8641328e8b888d1/internal/exec/yaml_func_store_test.go#L57
{
name: "basic lookup cross-stack",
input: "!store redis dev vpc cidr",
currentStack: "prod",
expected: "10.0.0.0/16",
},Erik Osterman (Cloud Posse)
02/06/2025, 8:02 PMErik Osterman (Cloud Posse)
02/06/2025, 8:02 PMDan Miller (Cloud Posse)
02/06/2025, 8:05 PMshirkevich
02/06/2025, 8:08 PMstores:
gsm:
type: google-secret-manager
options:
project_id: secret-managerDan Miller (Cloud Posse)
02/06/2025, 8:09 PMterraform:
hooks:
store-outputs:
name: gsm
events:
- after-terraform-apply
command: storeDan Miller (Cloud Posse)
02/06/2025, 8:10 PMcomponents:
terraform:
foo:
hooks:
store-outputs:
outputs:
my_id: .my_idDan Miller (Cloud Posse)
02/06/2025, 8:11 PMcomponents:
terraform:
bar:
var:
foo_id: !store foo my_idshirkevich
02/06/2025, 8:14 PMterraform:
kinde/foo:
metadata:
component: kinde
vars:
service_name: foo
kinde_client_id: !store gsm atmos shared kinde_client_id
kinde_client_secret: !store gsm atmos shared kinde_client_secretDan Miller (Cloud Posse)
02/06/2025, 8:15 PMDan Miller (Cloud Posse)
02/06/2025, 8:16 PMshirkevich
02/06/2025, 8:31 PMDan Miller (Cloud Posse)
02/06/2025, 8:32 PMErik Osterman (Cloud Posse)
02/10/2025, 4:21 AMshirkevich
02/10/2025, 2:16 PMMatt Calhoun
02/12/2025, 4:48 PMIs it a bug in documentation?Yes, it was. I've corrected it on the https://atmos.tools website
shirkevich
02/13/2025, 8:26 AMshirkevich
03/06/2025, 11:37 AMErik Osterman (Cloud Posse)
03/06/2025, 12:31 PMshirkevich
03/06/2025, 1:07 PMErik Osterman (Cloud Posse)
03/06/2025, 1:23 PMErik Osterman (Cloud Posse)
03/06/2025, 1:23 PMshirkevich
03/10/2025, 8:57 AMErik Osterman (Cloud Posse)
03/10/2025, 8:36 PMshirkevich
03/11/2025, 4:15 PMshirkevich
03/11/2025, 7:32 PM