This repository has been archived on 2022-02-19. You can view files and clone it, but cannot push or open issues or pull requests.
infra-aws-eks/state
Patrick MARIE af58173f61 Adding missing permission.
Also, force auto_destroy when cleaning up s3.
2022-02-19 17:20:02 +01:00
..
.terraform.lock.hcl Use a lockable state repository. 2022-02-19 17:03:41 +01:00
dynamo.tf Use a lockable state repository. 2022-02-19 17:03:41 +01:00
main.tf Use a lockable state repository. 2022-02-19 17:03:41 +01:00
README.md Use a lockable state repository. 2022-02-19 17:03:41 +01:00
s3.tf Adding missing permission. 2022-02-19 17:20:02 +01:00
variables.tf Use a lockable state repository. 2022-02-19 17:03:41 +01:00

state

This terraform infra creates mandatory s3 bucket & dynamo db for locks to handle terraform's states.

Usage

$ export AWS_PROFILE=infra-test
$ terraform init
$ terraform plan -var "aws_profile=$AWS_PROFILE" -out tf.plan
$ terraform apply tf.plan
...

$

Once created, other terraform infras' states can be saved in those s3/dynamo's repositories.