aws-terrabackend

1.1.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i aws-terrabackend

Weekly Downloads

1

Version

1.1.1

License

ISC

Unpacked Size

9.96 kB

Total Files

6

Last publish

Collaborators

  • hendrixroa