-: In this section we're gonna walk
through the process of shutting down
the three different resources that we created
while we deployed our multi docker application.
So as a quick reminder,
we got a couple things to shut down here.
Let's see.
Here we go.
Good enough diagram right here.
So we need to shut down the Elastic Beanstalk environment,
the RDS instance, and the EC instance as well.
We do not strictly have to shut down
or close off the security group that we had created.
There's no billing associated
with creating a security group but we'll walk
through the process of deleting it anyways.
Just in case you don't want to have
any stray security groups running around your application.
So let's get to it.
First thing we're going to clean up
is our Elastic Beanstalk instance.
So on services tab, I'll go back to Elastic Beanstalk.
I'll then find the multi-docker environment
or excuse me, application.
And on the right hand side,
I'll click on actions and then delete application.
And then click on the delete button.
So that's gonna start the process
of deleting the application.
It's going to appear that nothing is happening
for a minute or two, but you can refresh the page a couple
of times and eventually you're gonna see that it says,
Okay we're closing things down.
And in fact, if you click into the application itself
you'll probably even see the events right here
that say, Okay, it's terminating the environment.
All right, next up is RDS.
So our Postgres database,
I'll again go to services and then search for RDS.
We can then go to DB instances, either right here
in the middle or the instances button on the left hand side.
We can then click on, oh, don't wanna click on that.
We'll click on the little check mark right there.
And then we can go to instance actions and delete.
So we'll delete this.
We do not want to create a final snapshot
because there's no data for us to really save here.
So I'll click on no.
We'll hit I acknowledge that we're not making any backups
of this thing.
And then I'll enter in, delete me.
And then finally, I'll click on delete at the bottom right.
And then we see that as deleting.
And at the very last one we'll look up elasticache.
Right here.
I'll go to the red esttab on the left hand side.
And then again, I'll click on the little,
I don't know, check box right there.
All these UIs, look, it's very subtly different.
It's always kind of funny.
Anyways, check on the, click on the check box
and then hit the delete button at the top.
And yes, we want to delete this cluster.
Okay, that's good.
And then finally, we're gonna clean up the security group
that we had created on the VPC.
So I'll look at VPC.
And then on the left hand side we'll scroll
on down to security groups.
I'll select Multi Docker, Multi Docker end,
and the RDS Launch Wizard right here as well.
Now with these security groups, this is the only location
where you can very easily mess up other services
that might be running on your account.
So please triple check
and make sure you're deleting multi docker, multi docker,
and the RDS launch wizard.
So I'm gonna make sure I select all three of those.
And then I'll do security group actions at the top
and I'll delete those security groups.
And again, please triple check
to make sure you've got the correct ones selected here.
I'm gonna click on yes, delete.
Now, just in case you see this right here, you might see one
or two on here that say, Hey, we can't actually do that.
So if you see that around the first one
multi docker end right there,
or multi docker at the bottom one right here,
that's totally okay and means that these are tied
to existing Elastic Beanstalk
or other existing services you already have.
So you might have to wait a couple minutes
and then come back to this page
and try deleting them again because we are in the process
of deleting some other resources that are still
using these groups.
So for me, I'm just gonna hit okay and I'll come back
to this later on and attempt to delete these later.
Now as a quick reminder,
if you don't delete these, it's totally fine.
You don't get billed for this at all.
No billing whatsoever.
They can sit in your account
for all time and nothing bad is going to happen.
Now the very last thing
that you might want to clean up is on the IAM dashboard.
We can clean up our deploy keys that we had generated.
So on IAM I'll find my user's tab on the left hand side
and then I'll delete the user that I'd created.
So here's Multi Docker Deployer right here
and I'll go ahead and delete that user.
So eventually this thing's gonna,
there we go, finally.
So you'll notice that it says that these things are,
deleting this might affect running systems.
That's totally okay for us.
We definitely wanna delete this thing.
So I'll check the box over there
and then click on yes delete.
Okay, so that's pretty much it.
That is the cleanup.
So I hope that you enjoyed putting together
this multi container application,
but there's still a lot for us to do and a lot to learn.
So let's take a quick pause right here
and continue and keep going in the next section.