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
terraform/secrets.auto.tfvars
terraform/secrets.sh

View File

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

View File

@ -4,4 +4,6 @@ set -ex
cd terraform/
source secrets.sh
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"
}
}