Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
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

Packages

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.