From the course: DevOps Foundations: Your First Project
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Destroying the website from AWS S3
From the course: DevOps Foundations: Your First Project
Destroying the website from AWS S3
- [Instructor] Now what we're going to do that we proved that our website is up is we are going to use terraform to take it all down. Because we don't want to spend any additional money that we don't want to spend. And we can do that pretty easily with the terraform destroy command. So terraform destroy is going to look at our state, as it's doing now. Refreshing state. Refreshing state here. And that's going to show me what's going to be destroyed. So if you recall, we get a plus sign for things that are being created and a minus sign for things that are being destroyed So we get a minus sign for everything. We're okay with this, so I'm going to say yes. And we get an error saying that the bucket that we tried to delete is not empty. And this is actually normal because S3 has protections on it that prevent you from destroying buckets that have things in it. So what we're going to do is use the AWSCLI again to just…
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)
Creating the Terraform Dockerfile8m 58s
-
(Locked)
Building and testing a Terraform Docker image4m 32s
-
(Locked)
Creating a Terraform Docker Compose service1m 50s
-
(Locked)
AWS deployment explained3m 56s
-
(Locked)
Writing Terraform code12m 35s
-
(Locked)
Reviewing the Terraform plan9m 15s
-
(Locked)
Applying the Terraform plan7m 35s
-
(Locked)
Deploying the website into AWS S35m 48s
-
(Locked)
Destroying the website from AWS S36m 1s
-
(Locked)
Writing your integration test5m 55s
-
(Locked)
Running your integration test4m 58s
-
(Locked)
-
-