* Moving to a remote backend in s3

This commit is contained in:
shockrah 2022-06-13 23:08:02 -07:00
parent acfd39be9b
commit 92733f6613
2 changed files with 24 additions and 7 deletions

24
infra/backend.tf Normal file
View File

@ -0,0 +1,24 @@
terraform {
required_version = ">= 0.13"
backend "s3" {
bucket = "project-athens"
key = "infra/state/build.tfstate"
region = "us-west-1"
encrypt = true
}
required_providers {
aws = {
source = "hashicorp/aws"
version = "4.13.0"
}
}
}
# Base config for using AWS features w/ Terraform
provider "aws" {
access_key = var.aws_key
secret_key = var.aws_secret
region = var.aws_region
max_retries = 1
}

View File

@ -1,7 +0,0 @@
provider "aws" {
access_key = var.aws_key
secret_key = var.aws_secret
region = var.aws_region
max_retries = 1
}