README.md in terraforming-0.7.0 vs README.md in terraforming-0.8.0

- old
+ new

@@ -1,10 +1,10 @@ # Terraforming [![Build Status](https://travis-ci.org/dtan4/terraforming.svg?branch=master)](https://travis-ci.org/dtan4/terraforming) [![Code Climate](https://codeclimate.com/github/dtan4/terraforming/badges/gpa.svg)](https://codeclimate.com/github/dtan4/terraforming) -[![Test Coverage](https://codeclimate.com/github/dtan4/terraforming/badges/coverage.svg)](https://codeclimate.com/github/dtan4/terraforming) +[![Coverage Status](https://coveralls.io/repos/github/dtan4/terraforming/badge.svg?branch=increase-test-cov-160528)](https://coveralls.io/github/dtan4/terraforming) [![Dependency Status](https://gemnasium.com/dtan4/terraforming.svg)](https://gemnasium.com/dtan4/terraforming) [![Gem Version](https://badge.fury.io/rb/terraforming.svg)](http://badge.fury.io/rb/terraforming) [![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat)](LICENSE) [![Docker Repository on Quay.io](https://quay.io/repository/dtan4/terraforming/status "Docker Repository on Quay.io")](https://quay.io/repository/dtan4/terraforming) [![Join the chat at https://gitter.im/dtan4/terraforming](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/dtan4/terraforming?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) @@ -15,18 +15,19 @@ - [Installation](#installation) - [Prerequisites](#prerequisites) - [Usage](#usage) - [Export tf](#export-tf) - [Export tfstate](#export-tfstate) + - [Example: Export all](#example-export-all) - [Run as Docker container](#run-as-docker-container-) - [Development](#development) - [Contributing](#contributing) - [License](#license) ## Supported version -Ruby 2.x +Ruby 2.1 or higher ## Installation Add this line to your application's Gemfile: @@ -86,10 +87,11 @@ terraforming iamr # IAM Role terraforming iamrp # IAM Role Policy terraforming iamu # IAM User terraforming iamup # IAM User Policy terraforming igw # Internet Gateway + terraforming lc # Launch Configuration terraforming nacl # Network ACL terraforming nif # Network Interface terraforming r53r # Route53 Record terraforming r53z # Route53 Hosted Zone terraforming rds # RDS @@ -97,10 +99,12 @@ terraforming rt # Route Table terraforming rta # Route Table Association terraforming s3 # S3 terraforming sg # Security Group terraforming sn # Subnet + terraforming sqs # SQS + terraforming vgw # VPN Gateway terraforming vpc # VPC ``` ### Export tf @@ -308,9 +312,18 @@ $ terraform plan No changes. Infrastructure is up-to-date. This means that Terraform could not detect any differences between your configuration and the real physical resources that exist. As a result, Terraform doesn't need to do anything. +``` + +#### Example: Export all +Example assuming you want to export everything from us-west-2 and you are using ~/.aws/credentials with a `default` profile +```bash +export AWS_REGION=us-west-2 +terraforming help | grep terraforming | grep -v help | awk '{print "terraforming", $2, "--profile", "default", ">", $2".tf";}' | bash +# remove files that only have 1 empty line (nothing in AWS) +find . -type f | xargs wc -l | grep '1 .' | awk '{print $2;}' | xargs rm ``` ## Run as Docker container [![Docker Repository on Quay.io](https://quay.io/repository/dtan4/terraforming/status "Docker Repository on Quay.io")](https://quay.io/repository/dtan4/terraforming) Terraforming Docker Image is available at [quay.io/dtan4/terraforming](https://quay.io/repository/dtan4/terraforming) and developed at [dtan4/dockerfile-terraforming](https://github.com/dtan4/dockerfile-terraforming).