📊
SecretsFoundry
  • Welcome 👋
  • Installation
  • Getting Started
  • Secret Loaders
    • AWS Parameter Store
    • AWS Secrets Manager
    • Hashicorp Vault
    • AWS S3
  • Usage
    • Run SecretsFoundry
    • Integrating with Docker
  • Configuration Managment
    • Multiple Environments
Powered by GitBook
On this page

Was this helpful?

  1. Configuration Managment

Multiple Environments

Manager your configs across multiple environments using Gitops

Using SecretsFoundry, you can create multiple configuration files and commit them to Git

.env.development

DB_HOST=localhost
DB_USERNAME = 'admin'
DB_PASSWORD = 'password'

PORT='8080'

.env.staging

DB_HOST=https://staging.example.com
DB_USERNAME = ${aws-ssm:/staging/example/DB_USERNAME}
DB_PASSWORD = ${aws-ssm:/staging/example/DB_PASSWORD}

PORT='8081'

.env.prod

DB_HOST=https://staging.example.com
DB_USERNAME = ${aws-secrets:/prod/example/DB_USERNAME}
DB_PASSWORD = ${aws-secrets:/prod/example/DB_PASSWORD}

PORT='8080'

To run your binary in different environments, we can just do:

secretsfoundry run --stage <development|staging|prod> -c "run binary"

PreviousIntegrating with Docker

Last updated 3 years ago

Was this helpful?