Skip to main content

Posts

Showing posts from 2019

AWS Cheat Sheet

Terraforming | Infrastructure to IAC converter | AWS infrastructure to code

Terraforming Terraforming  is a free and open-source tool written in Ruby. It helps you to export existing AWS resources to Terraform style (tf, tfstate). Currently Terraforming requires Ruby 2.1 and supports Terraform v0.9.3 or higher. You can install Terraforming by  gem  command. 1 $ gem install terraforming Access Requirements Just like Terraform, Terraforming requires access to your AWS infrastructure to be able to export the configuration. You can set the AWS credential by exporting environment variables. 1 2 3 $ export AWS_ACCESS_KEY_ID=xxxxxxxxxxxxx $ export AWS_SECRET_ACCESS_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx $ export AWS_REGION=xx-yyyy-0 Or you can use  ~/.aws/credentials  file to manage the profiles then specify  --profile <profile-name>  in your  terraforming  commands. 1 2 3 4 $ cat ~/.aws/credentials [cheeku] aws_access_key_id = xxxxxxxxxxxxx aws_secret_access_key = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx T