trf

command module
v0.0.0-...-edaa5c5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 18, 2017 License: MIT Imports: 4 Imported by: 0

README

Trf

Build Status

Export AWS resources to Terraform resources.

Disclaimer

This is built for fun only, not for production use, use this instead.

Prerequisites

  1. AWS credentials

Either,

export AWS_ACCESS_KEY_ID=MY-ACCESS-KEY
export AWS_SECRET_ACCESS_KEY=MY-SECRET-KEY
export AWS_REGION=my-region

Or,

# ~/.aws/credentials

[default]
aws_access_key_id = MY-ACCESS-KEY
aws_secret_access_key = MY-SECRET-KEY

Usage

# Usage:
# trf [global options] command [command options] [arguments...]

trf aos # Get OpsWorks Stack resource

Available Resources

Command Resource Name
aos OpsWorks Stack
aocl OpsWorks Custom Layer
aoa OpsWorks Application

Contributing

The normal workflow of adding a new resource

  1. Refer to AWS Cli reference for available commands & their response. e.g. for OpsWorks, http://docs.aws.amazon.com/cli/latest/reference/opsworks
  2. Refer to AWS SDK for Go API documentation for how to issue a command via API.
  3. Refer to Terraform AWS providers documentation when defining a struct for a particular resource.

License

MIT License

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
resource
aws

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL