Move backend to S3 based

This commit is contained in:
Jake Howard 2020-02-21 22:15:32 +00:00
parent 63aa3a7216
commit 2471b4f843
Signed by: jake
GPG key ID: 57AFB45680EDD477
4 changed files with 13 additions and 0 deletions

1
.gitignore vendored
View file

@ -150,3 +150,4 @@ override.tf.json
# End of https://www.gitignore.io/api/terraform # End of https://www.gitignore.io/api/terraform
terraform/secrets.auto.tfvars terraform/secrets.auto.tfvars
terraform/secrets.sh

View file

@ -4,4 +4,6 @@ set -ex
cd terraform/ cd terraform/
source secrets.sh
terraform apply terraform apply

View file

@ -4,4 +4,6 @@ set -ex
cd terraform/ cd terraform/
source secrets.sh
terraform plan terraform plan

8
terraform/backends.tf Normal file
View file

@ -0,0 +1,8 @@
terraform {
backend "s3" {
bucket = "0rng-terraform"
key = "terraform.tfstate"
encrypt = true
region = "eu-west-2"
}
}