Demo Proposal: Using Terraform to Detect and Recover from Infrastructure Drift - #3020
Open
JonathanVarild wants to merge 2 commits into
Open
JonathanVarild wants to merge 2 commits into
JonathanVarild wants to merge 2 commits into
Conversation
Collaborator
|
Missing student registration :jonvar If not from your group, fetch the upstream. |
1 similar comment
Collaborator
|
Missing student registration :jonvar If not from your group, fetch the upstream. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Assignment Proposal
Title
Demo Proposal - Using Terraform to Detect and Recover from Infrastructure Drift
Names and KTH ID
Deadline
Category
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 planto show that Terraform detects this anomaly between the desired and actual state. If Terraform detects it, we should be able to runterraform applyto 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.