Skip to content

Demo Proposal: Using Terraform to Detect and Recover from Infrastructure Drift - #3020

Open
JonathanVarild wants to merge 2 commits into
KTH:2026from
JonathanVarild:JonathanVarild-demo-week5
Open

JonathanVarild wants to merge 2 commits into
KTH:2026from
JonathanVarild:JonathanVarild-demo-week5

Conversation

@JonathanVarild

@JonathanVarild JonathanVarild commented Sep 14, 2026

Copy link
Copy Markdown

Assignment Proposal

Title

Demo Proposal - Using Terraform to Detect and Recover from Infrastructure Drift

Names and KTH ID

Deadline

  • Week 5

Category

  • Demo

Description

We are going to use Terraform to visualize how Infrastructure as Code can be used to deploy a simple infrastructure. We are then going to create a configuration drift by making a manual change directly to the environment outside of Terraform, effectively meaning that the deployed environment no longer is 1-to-1 with the Terraform configuration. We should then be able to run the command terraform plan to show that Terraform detects this anomaly between the desired and actual state. If Terraform detects it, we should be able to run terraform apply to restore the infrastructure to the desired state.

Relevance

Infrastructure as Code is very relevant to keep infrastructure reproducible, automated, version-controlled, and to detect configuration drift and keep infrastructure consistent. If you instead were to manually configure all of your systems, it would often be way harder to keep track of the state of your systems. This can in turn can cause security problems, inconsistent parallel environments, and make restoration harder in the case of a catastrophic event. This task is thus very relevant to understand how a system like this can be used in practice.

@github-actions github-actions Bot added the demo One of the task categories listed in README.md label Sep 14, 2026
@algomaster99

Copy link
Copy Markdown
Collaborator

Missing student registration :jonvar

If not from your group, fetch the upstream.

1 similar comment
@algomaster99

Copy link
Copy Markdown
Collaborator

Missing student registration :jonvar

If not from your group, fetch the upstream.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

demo One of the task categories listed in README.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants