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

Destroying the website from AWS S3

From the course: DevOps Foundations: Your First Project

Start my 1-month free trial

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…

Contents