Sha256: dbc5df949b5cc1b69bf81953528d72094193785d7e3df22f7b058c247b2abd69

Contents?: true

Size: 1.98 KB

Versions: 3

Compression:

Stored size: 1.98 KB

Contents

# Terraformer

Is a fork of the [original package](https://github.com/dtan4/terraforming) that allows you to export resources to [Terraform](https://terraform.io/) style (tf, tfstate) 

- [Supported version](#supported-version)
- [Installation](#installation)
- [Prerequisites](#prerequisites)
- [Usage](#usage)
- [Development](#development)
- [Contributing](#contributing)
- [License](#license)

## Supported version

Ruby 2.1 or higher

## Installation

```bash
$ gem install terraform-exporter
```

## Prerequisites

### AWS credentials.

```bash
export AWS_ACCESS_KEY_ID=XXXXXXXXXXXXXXXXXXXX
export AWS_SECRET_ACCESS_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
export AWS_REGION=xx-yyyy-0
```

You can also pass them as options `--aws_access_key_id` `--aws_secret_access_key` `--aws_region`

### Datadog credentials

```bash
export DATADOG_API_KEY=XXXXXXXXXXXXXXXXXXXX
export DATADOG_APP_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
```

You can also pass them as options `--datadog_api_key` `--datadog_app_key`

## Usage

```bash
$ terraformer
Commands:
  terraformer cwa              # CloudWatch Alarms
  terraformer dm               # Datadog Metrics
  terraformer help [COMMAND]   # Describe available commands or one specific command

Options:
  [--merge=MERGE]                                 # tfstate file to merge
  [--name=NAME]                                   # name of the tf file
  [--aws_access_key_id=AWS_ACCESS_KEY_ID]         # Aws access key
  [--aws_secret_access_key=AWS_SECRET_ACCESS_KEY] # Aws access key
  [--aws_region=AWS_REGION]                       # Aws region
  [--datadog_api_key=DATADOG_API_KEY]             # Datadog api key
  [--datadog_app_key=DATADOG_APP_KEY]             # Datadog app key
```

## Contributing

1. Fork it ( https://github.com/intercom/terraformer/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
terraform-exporter-0.0.4 README.md
terraform-exporter-0.0.3 README.md
terraform-exporter-0.0.2 README.md