Skip to content

Commit

Permalink
refa(lab4): clean up documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
HenrikFricke committed May 10, 2022
1 parent 4b217eb commit 29da30f
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
11 changes: 9 additions & 2 deletions 4-parameterization/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down Expand Up @@ -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 ✌️
5 changes: 5 additions & 0 deletions 4-parameterization/prod/main.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
terraform {
required_version = "~> 1.1.7"

backend "s3" {
key = "prod/terraform.tfstate"
region = "eu-west-1"
}
}

provider "aws" {
Expand Down
5 changes: 5 additions & 0 deletions 4-parameterization/staging/main.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
terraform {
required_version = "~> 1.1.7"

backend "s3" {
key = "staging/terraform.tfstate"
region = "eu-west-1"
}
}

provider "aws" {
Expand Down

0 comments on commit 29da30f

Please sign in to comment.