Move backend to S3 based
This commit is contained in:
parent
63aa3a7216
commit
2471b4f843
1
.gitignore
vendored
1
.gitignore
vendored
@ -150,3 +150,4 @@ override.tf.json
|
||||
# End of https://www.gitignore.io/api/terraform
|
||||
|
||||
terraform/secrets.auto.tfvars
|
||||
terraform/secrets.sh
|
||||
|
@ -4,4 +4,6 @@ set -ex
|
||||
|
||||
cd terraform/
|
||||
|
||||
source secrets.sh
|
||||
|
||||
terraform apply
|
||||
|
@ -4,4 +4,6 @@ set -ex
|
||||
|
||||
cd terraform/
|
||||
|
||||
source secrets.sh
|
||||
|
||||
terraform plan
|
||||
|
8
terraform/backends.tf
Normal file
8
terraform/backends.tf
Normal file
@ -0,0 +1,8 @@
|
||||
terraform {
|
||||
backend "s3" {
|
||||
bucket = "0rng-terraform"
|
||||
key = "terraform.tfstate"
|
||||
encrypt = true
|
||||
region = "eu-west-2"
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user