> For the complete documentation index, see [llms.txt](https://abhichoudhary06.gitbook.io/secretsfoundry/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://abhichoudhary06.gitbook.io/secretsfoundry/configuration-management/multiple-environments.md).

# Multiple Environments

Manager your configs across multiple environments using Gitops

Using SecretsFoundry, you can create multiple configuration files and commit them to Git&#x20;

#### .`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"`
