From 29da30fe2044c9841626f6afdfd1cc8acdac5fbb Mon Sep 17 00:00:00 2001 From: Henrik Fricke Date: Tue, 10 May 2022 17:24:19 +0200 Subject: [PATCH] refa(lab4): clean up documentation --- 4-parameterization/README.md | 11 +++++++++-- 4-parameterization/prod/main.tf | 5 +++++ 4-parameterization/staging/main.tf | 5 +++++ 3 files changed, 19 insertions(+), 2 deletions(-) diff --git a/4-parameterization/README.md b/4-parameterization/README.md index 96a5e08..836fa76 100644 --- a/4-parameterization/README.md +++ b/4-parameterization/README.md @@ -75,6 +75,11 @@ The new feature wouldn't appear after deployment (feel free to try it and deploy ```tf terraform { required_version = "~> 1.1.7" + + backend "s3" { + key = "staging/terraform.tfstate" + region = "eu-west-1" + } } provider "aws" { @@ -107,6 +112,8 @@ The new feature wouldn't appear after deployment (feel free to try it and deploy With input variables, we can make modules configurable for different scenarios. In this case, we only want to deploy a new feature to the staging environment, but not to production. In practice, it's a common requirement to configure environments differently. For example, we want to configure provisioned capacities (like CPU or memory allocation), a global CDN or custom domains with SSL certificates. -## Next +## Final words + +Well, that was the last lab for the Terraform workshop. We hope you enjoyed the workshop. If you want to learn more about Terraform and dive deeper, take a look at the [reading list](../README.md#📖-further-reading). -In the [next lab](../5-remote-backend/), we need to talk about another core concept of Terraform: The State. +Cheers ✌️ diff --git a/4-parameterization/prod/main.tf b/4-parameterization/prod/main.tf index 8896638..21f9b37 100644 --- a/4-parameterization/prod/main.tf +++ b/4-parameterization/prod/main.tf @@ -1,5 +1,10 @@ terraform { required_version = "~> 1.1.7" + + backend "s3" { + key = "prod/terraform.tfstate" + region = "eu-west-1" + } } provider "aws" { diff --git a/4-parameterization/staging/main.tf b/4-parameterization/staging/main.tf index 8b38a25..fa38115 100644 --- a/4-parameterization/staging/main.tf +++ b/4-parameterization/staging/main.tf @@ -1,5 +1,10 @@ terraform { required_version = "~> 1.1.7" + + backend "s3" { + key = "staging/terraform.tfstate" + region = "eu-west-1" + } } provider "aws" {