aws-terrabackend v1.1.1
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
Through AWS console create new IAM user called
deploy
(or whatever you want) with programmatic access only and attach to himAdministratorAccess
policy and save access key id/secret (id/secret can passed to terraform via standard env varsAWS_PROFILE
).Once you installed
terrabackend
, configure the aws-cli profile configure profile that will be use byterrabackend
.Run
terrabackend
with the Profile needed, for example:
$ AWS_PROFILE=myprofile terrabackend
terrabackend command will ask you by the name of bucket, name of tfbackend file and region.
It will generate a .tfbackend (in the current path) to be used in your Terraform backend. More info TF Backend
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago