Gists are examples that demonstrate a concept, but are not actively maintained and may not work in your environment or current versions of Atmos without adaptations.
dev.yaml1.1 KB
View on GitHubvars:
stage: dev
secrets:
vars:
SSM_STACK_TOKEN:
description: Stack-scoped token shared by components in this stack.
store: secrets/ssm
required: true
components:
terraform:
secret-consumer:
dependencies:
tools:
opentofu: "1.12.2"
secrets:
vars:
SSM_INSTANCE_TOKEN:
description: Instance-scoped token stored in SSM SecureString.
store: secrets/ssm
required: true
ASM_DATABASE_CONFIG:
description: Structured database config stored in AWS Secrets Manager.
store: secrets/asm
required: true
GLOBAL_SHARED_TOKEN:
description: Global token shared by every stack using this store and declaration.
store: secrets/ssm
scope: global
required: true
vars:
ssm_instance_token: !secret SSM_INSTANCE_TOKEN
ssm_stack_token: !secret SSM_STACK_TOKEN
asm_database_password: !secret ASM_DATABASE_CONFIG | path ".password"
global_shared_token: !secret GLOBAL_SHARED_TOKEN