Question about specifying stores in the `atmos.yam...
# atmos
c
Question about specifying stores in the
atmos.yaml
if anyone has any guidance: Instead of specifying each store for each account individually like
Copy code
stores:
   sandbox/use1/devops:
    type: aws-ssm-parameter-store
    options:
      region: us-east-1
      read_role_arn: arn:aws:iam::123456789:role/sandbox-gbl-devops-terraform
      write_role_arn: arn:aws:iam::123456789:role/sandbox-gbl-devops-terraform
Is there any option to dynamically create those store entries based on the vars like
tenant-environment-stage
and dynamically build those in the
atmos.yaml
and reference them in the downstream stacks? IE something like.
Copy code
stores:
   {{tenant}}/{{stage}}:
    type: aws-ssm-parameter-store
    options:
      region: us-east-1
      read_role_arn: arn:aws:iam::{{account_id}}:role/{{tenant}}-gbl-{{stage}}-terraform
      write_role_arn: arn:aws:iam::{{account_id}}:role/{{tenant}}-gbl-{{stage}}-terraform
doing that would allow us to just infer the right store when the hooks run, vs hardcoding all the different stores for each of our accounts.
a
Carter, currently templates are not supported in
atmos.yaml
, but your point is valid - would be nice to have the feature. @Gabriela Campana (Cloud Posse) please create a task to review it (before we implement anything)
🙌 1
✅ 1
g