add terraform remote backend

This commit is contained in:
Nana Janashia
2020-12-19 15:20:15 +01:00
parent c9d167df44
commit e7b83ef190
3 changed files with 28 additions and 0 deletions

View File

@@ -1,3 +1,12 @@
terraform {
required_version = ">= 0.12"
backend "s3" {
bucket = "myapp-bucket"
key = "myapp/state.tfstate"
region = "eu-west-3"
}
}
provider "aws" {
region = var.region
}