Welcome back to the final stage
of this advanced demo series,
and all that remains is to tidy up the account
and put it back into the same state as it was
when we started this demo lesson.
So we need to go back in reverse order
through all of the things that we've implemented.
So first, we need to remove the load balancer,
so move to the EC2 console, select load balances,
select the load balancer, click on actions, and then delete.
You'll need to confirm it by clicking on yes, delete,
and that will delete the load balancer.
Once the load balancer is gone, select target groups,
and select the target group that you created
for this demo series.
It's called A4LWORDPRESSALBTG.
So go ahead and click on actions, and then delete,
and then confirm by clicking yes, delete,
And that will delete the target group.
Next, we need to delete the auto scaling group,
so scroll down, click on auto scaling groups.
You should only have the one.
It's called A4LWORDPRESSASG,
So select it, and then click on delete.
This time, you'll need to confirm by typing delete,
and then clicking on delete.
Now this one might take some time
because it's going to terminate the instances
that it provisioned as part of the process.
So while this one finishes, click on services,
type EFS and then open that in a new tab.
Select the EFS file system and click on delete.
You'll need to confirm by typing
or pasting in the file system ID
and then clicking on confirm.
That will first delete the mount targets
and then the file system itself,
and again, that could take a few minutes to complete.
Next, click on services and move to the RDS console,
select databases, then go ahead and check the box
next to a4lwordpress, then click on actions,
and then select delete.
On this dialogue, uncheck create final snapshot.
Also uncheck retain automated backups.
Check this acknowledgement box,
then type delete space me into this field,
and then click on delete, and that will begin the process
of deleting the RDS instance.
Move back to EFS.
That's finished deleting.
Go back to EC2.
Check whether the auto scaling group has been deleted.
It has, so that's good,
so now we can go to launch templates.
Select the launch template.
Go to actions, and then delete template,
and to confirm that, you need to type delete in the box,
and then click on delete.
Okay, next we'll need to move to the parameter store.
Once we're at the parameter store,
we need to delete all of the parameters
that we created for this WordPress advanced demo,
so that should be any of the parameters
which begin with forward slash A4L forward slash WordPress
and then anything else.
So go ahead and select all of those, click on delete,
confirm that you don't have any extra selected by mistake,
and click on delete parameters.
At this point, RDS is all that's left,
so go back to the RDS console
and you'll need to wait for this to finish
before we can fully delete the infrastructure.
Go ahead and pause the video
and wait for a4lwordpress to finish deleting,
and then we can perform the final cleanup step,
and at that point,
you've deleted all of the infrastructure in this account,
so all of the instances have been terminated,
and the last thing which remains
is to go back to the cloud formation console
and delete the cloud formation stack
that you applied at the very beginning.
So select the stack, click on delete,
and then click on delete stack,
and this will remove all of the infrastructure
created by the one-click deploy at the start of this lesson,
so it will remove all of the subnets
and the VPC used for this demo lesson.
Now with that being said,
that's everything that you need to do
in this last stage of the demo series,
and it is the end of this demo series.
Now I hope it's been enjoyable and useful.
I find that this specific advanced demo lesson
is really useful for any students
looking to get their first job in AWS,
so anyone who is applying for that first job in AWS
which requires a scenario-style task
as part of an interview, because this demo
has been all about evolving an architecture
using your knowledge of that product,
so working around the limitations of WordPress in this case
using AWS products and services
to move from that single-server design
through to a fully scalable, resilient,
and self-healing platform.
Now this is a simple example,
but it's the type of thing that you'll need to be able to do
for these scenario-based tasks
as part of most job interviews
for solutions architect or consultancy-style positions.
Now I will be releasing many more advanced demos,
and all of them will be available
within my courses and on the GITHUB repository,
so I do encourage you to keep an eye on that repository
and in my courses, and do all of these advanced demos
because I find that they're really valuable
for real world situations.
If you're looking to interview for a new position
or if you need to learn how to do something
in practice for your current position,
then these advanced demos are really invaluable.
At this point, though,
that is everything that you need to do in this lesson,
so go ahead, complete the lesson,
and when you're ready, I look forward to you joining me
in another exciting advanced demo series
or another lesson in one of my courses.