Skip to main content

No project description provided

Project description

## Terrier

Terrier is a helper for Terraform remote configuration. It allows `terraform remote` configurations to be stored in a JSON file and used between developers reliably. Currently Terraform doesn't support meta-configuration of itself or its remotes. This makes usage of `terraform remote` problematic as lengthy commands need to remembered or be disseminated through a `README` or other error prone methods.

## Usage

### Define a `terrier.json` configuration file

```
{
"qa": {
"remote": {
"backend": "S3",
"config": {
"bucket": "foo-qa-bucket",
"key": "foo-qa.tfstate",
"region": "us-west-1"
}
}
}
}
```

The top level key provides the name of an environment, `qa` in the following example. Keys generally map to `terraform remote config` arguments. Keys and values defined under `config` will be passed through as `-backend-config` arguments.

### Run `terrier remote <environment>`

The example above would be called with

`terrier remote qa`

and would generate and execute the following `terraform remote` command

`terraform remote config -backend=S3 -backend-config="bucket=foo-qa-bucket" -backend-config="key=foo-qa.tfstate" -backend-config="region=us-west-1"`

### Continue with `terraform remote`

`terrier` only handles configuration of multiple `terraform` remotes. Once run and a remote configured, one should carry on using vanilla `terraform remote pull` and `push` commands.


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

terrier-0.2-py2.py3-none-any.whl (4.1 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file terrier-0.2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for terrier-0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 9bf511933f32615e7085047dfce1f0027eb90d80575b7a6c7edff85c94640f3e
MD5 15438df0f8082cd0d434c88a073afae1
BLAKE2b-256 54a9b98971d0565f92299cba26679816ecb10d7eb29cf5d3f2bcac9e4b00279f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page