diff --git a/2-modules/README.md b/2-modules/README.md index 43c391f..ea2c140 100644 --- a/2-modules/README.md +++ b/2-modules/README.md @@ -18,6 +18,11 @@ In the first lab, we bootstrapped Terraform and got familiar with the very basic ```tf terraform { required_version = "~> 1.1.7" + + backend "s3" { + key = "terraform.tfstate" + region = "eu-west-1" + } } provider "aws" { @@ -78,6 +83,11 @@ That's it for the Lambda function. Let's go to the API Gateway. ```tf terraform { required_version = "~> 1.1.7" + + backend "s3" { + key = "terraform.tfstate" + region = "eu-west-1" + } } provider "aws" { diff --git a/2-modules/main.tf b/2-modules/main.tf index 3dcd0cb..f67fc73 100644 --- a/2-modules/main.tf +++ b/2-modules/main.tf @@ -4,6 +4,11 @@ terraform { provider "aws" { region = "eu-west-1" + + backend "s3" { + key = "terraform.tfstate" + region = "eu-west-1" + } } data "aws_caller_identity" "current" {}