From the course: DevOps Foundations: Your First Project
Unlock the full course today
Join today to access over 24,700 courses taught by industry experts.
Reviewing the OpenTofu plan
From the course: DevOps Foundations: Your First Project
Reviewing the OpenTofu plan
Infrastructure provision with OpenTofu is done in two steps. The plan step and the apply step. The plan step shows you what OpenTofu is going to create, change or delete. This way you can spot-check your work and make sure that OpenTofu will create what you're expecting to have created. The apply step, well, applies those changes. Let's take the HCL that we saw earlier and turn it into a plan. First, we'll need to initialize OpenTofu with "open tofu init". The way we do that is by running "docker compose run --rm open tofu init". This will fetch code for the provider that we need and perform other configurations. What OpenTofu is doing here is fetching the AWS provider that makes all of those resources work, as well as the random provider, which was used for the random string resource that we saw before. You'll know that OpenTofu has finished initializing when you see this green message over here saying that OpenTofu has been successfully initialized. So now that OpenTofu is…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
-
(Locked)
Deploy with confidence with infrastructure as code3m 45s
-
(Locked)
Finding the version of OpenTofu to use49s
-
(Locked)
Adding OpenTofu to Docker Compose4m 49s
-
(Locked)
AWS deployment explained2m 13s
-
(Locked)
Writing your integration test12m 18s
-
(Locked)
Writing OpenTofu code9m 43s
-
(Locked)
Reviewing the OpenTofu plan3m 24s
-
Applying the OpenTofu plan8m 11s
-
(Locked)
Running your integration test1m 42s
-
(Locked)
Destroying the website from AWS S31m 53s
-
(Locked)
-
-