From 1500afa7d24898e3e821c07335b635b66bc366d1 Mon Sep 17 00:00:00 2001 From: Henrik Fricke Date: Tue, 10 May 2022 16:51:05 +0200 Subject: [PATCH] refa(lab2): clean up documentation --- 2-modules/README.md | 10 ++++++++++ 2-modules/main.tf | 5 +++++ 2 files changed, 15 insertions(+) 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" {}