Skip to content

Bootstrap CLI for creating Terraform backend states with AWS S3 and DynamoDB

Notifications You must be signed in to change notification settings

hendrixroa/aws-terrabackend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AWS Terraform Backend

CLI that helps you to configure the remote state S3 State in AWS creating the S3 bucket and the dynamoDB table to lock the state.

Install

  • Run yarn global add aws-terrabackend
  • The command name is terrabackend

### How to use

  1. Through AWS console create new IAM user called deploy (or whatever you want) with programmatic access only and attach to him AdministratorAccess policy and save access key id/secret (id/secret can passed to terraform via standard env vars AWS_PROFILE).

  2. Once you installed terrabackend, configure the aws-cli profile configure profile that will be use by terrabackend.

  3. Run terrabackend with the Profile needed, for example:

$ AWS_PROFILE=myprofile terrabackend
  1. terrabackend command will ask you by the name of bucket, name of tfbackend file and region.

  2. It will generate a .tfbackend (in the current path) to be used in your Terraform backend. More info TF Backend

About

Bootstrap CLI for creating Terraform backend states with AWS S3 and DynamoDB

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages