Move backend to S3

This commit is contained in:
mr-vercetti
2022-09-07 12:31:36 +02:00
parent cb623de6bb
commit 03b202d38d
8 changed files with 103 additions and 8 deletions

View File

@ -1,10 +1,10 @@
# general
REGION = "eu-west-3"
REGION = "eu-west-3"
PROJECT_NAME = "demo"
# vpc
DEMO_VPC_CIDR = "10.0.0.0/24"
DEMO_VPC_AVAILABILITY_ZONES = ["eu-west-3a", "eu-west-3b"]
DEMO_VPC_CIDR = "10.0.0.0/24"
DEMO_VPC_AVAILABILITY_ZONES = ["eu-west-3a", "eu-west-3b"]
DEMO_VPC_PRIVATE_SUBNETS_CIDRS = ["10.0.0.0/28", "10.0.0.16/28"]
DEMO_VPC_PUBLIC_SUBNETS_CIDRS = ["10.0.0.32/28", "10.0.0.48/28"]

View File

@ -5,4 +5,13 @@ terraform {
version = "~> 3"
}
}
backend "s3" {
bucket = "demo-state-bucket-98017casd"
key = "tf-aws-demo/prod/terraform.tfstate"
region = "eu-west-3"
encrypt = true
kms_key_id = "9bb018d4-3ef8-496e-884c-154478d7f8b2"
dynamodb_table = "demo-state-lock"
}
}