atmos secret validate
Validate that every required declared secret for a stack and component is initialized in its configured backend. The command exits 0 when all required secrets are present and exits non-zero (1) when any required secret is missing, making it well suited for CI pipelines and pre-deployment gates.
Usage
atmos secret validate [flags]
Examples
# Validate that all required secrets are initialized
atmos secret validate --stack=prod --component=api
# Disambiguate a component that exists in multiple types
atmos secret validate --stack=prod --component=api --type=terraform
# Validate using a specific identity for the backend
atmos secret validate --stack=prod --component=api --identity=aws/prod-secrets
# Use the non-zero exit code as a CI gate
atmos secret validate --stack=prod --component=api && echo "all secrets present"
Arguments
- n/a
- No positional arguments.