Okay, so let's practice using AWS Backups.
So I'm going to type aws backup into the search bar
and open the Backup service.
So we are going to create our first Backup plan.
So I'm going to click on Create Backup plan.
And we have three options,
either we Start with a template, or we Build a new plan,
or we Define a plan using JSON.
So the simplest for us is to Start with a template.
And we can have different templates,
for example, Daily-35day-Retention,
Daily-Monthly-1yr-Retention and so on.
So let's go with Daily-Monthly-1yr-Retention
and I'll call it TestPlan.
Next, we can look at Backup rules.
And you see we can have many backup rules
in our Backup rules.
So we have two, we have DailyBackups and Monthly.
So if I click on DailyBackup,
as we can see, there's a rule name.
The Backup vault is wherever the backup is going.
So we can use a default one by AWS
or we can create our own new Backup vault
if we wanted to.
The Backup frequency, the Backup windows,
so when to start which is 5:00 AM, UTC,
start within eight hours.
But we can customize it if you want,
whether or not you want to Transition to cold storage,
Never, after some Days, Weeks, Months, or Years.
And the retention period of your backup,
for example, this one is retained for five weeks.
Then we can also copy these backups
to a specific destination,
for example, another region for disaster recovery purposes.
So I'm going to save this backup rule.
And for Monthly, while we get this similar thing,
so it's going into the Default Backup vault.
It's monthly on day one of each month
and the rest looks the same.
So we actually transitioned these ones
to cold storage after one month,
and then we retain them for one year.
Okay, so we have these ready
and then I can just scroll down and click on Create plan.
So now our TestPlan is created
and we need to assign resources to it.
So I'm going to click on Assign resources
and I'll just call it TestAssignment.
And here we can choose our IAM role
to perform these backups.
So let's use the Default role,
but we can create our own IAM role
if we wanted to.
And because we don't have
an AWS Backup default role already,
one is going to be created for us
with the correct permissions.
So that's perfect.
And then to assign resources,
we can either assign them a Resource ID,
for example, saying hey, I want this DynamoDB table
with this resource ID to be backed up
or this EC2 Instance or this EBS volume.
Or you can say by tags,
for example, I can say Environment and then Production.
And so anything that will be tagged
with Environment Production is going to be backed up.
So I'm going to keep these tags.
And so anything that will be tagged within AWS
with these tags is going to be backed up.
So click on Assign resources.
And so just to make it very, very clear,
if I went into EC2
and I were to create an EBS Volume
and that volume would have,
so for example, one gigabyte.
And then the key would be Environment Production,
then this would be automatically backed up
by my backup plan,
because it has the correct tags.
So if you look at our Volume right now, and we go into Tags,
as we can see, it has Environment Production,
which corresponds to the tags that I've set up
for my backup plan.
Okay, so this is the assignments right here.
And we can have multiple assignments as well in here.
Okay, and then that's it.
The backup plan is going to run automatically.
And then the backups are going appear in my backup vaults.
Okay, the jobs are going to be scheduled and happening.
So we have Backup jobs, Restore jobs, and Copy jobs
if we wanted to.
And then we can look at the Settings.
So the settings is around,
do you want to have Backup policies,
Cross-account monitoring,
Cross-account backups, and so on.
But we've seen the basics of how backups work
and so that's it.
I wanted to show you all this, okay?
That's all you need to know,
and now I'm going to delete everything.
So for that, please make sure to delete your EBS volume
or you could wait a day if you wanted to see
if the backups work, obviously.
And then when you're done,
you take the assignment and you Delete it.
So type the name of the assignment in here.
And then for the daily backup rules,
we can Delete them or delete directly the backup plan.
And for this, just enter the name of the backup plan
and press Delete.
And that's it.
We've seen backups.
I hope you liked it.
And I will see you in the next lecture.