Skip to content

Commit dc4200c

Browse files
dchengDiana
andauthored
Updated Backup section with grammar and typo corrections. Updated all… (#141)
* Updated backup section with grammar and typo corrections. Updated all screenshots until before Scheduled Backup/Restore section. * resized all images in LHOL Lab * more resizing of remaining images --------- Co-authored-by: Diana <[email protected]>
1 parent 1f30b05 commit dc4200c

34 files changed

+125
-116
lines changed

content/hands-on-labs/backups/on-demand-backup.en.md

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,24 @@ table performance or availability.
1616
1. First, go to the [DynamoDB Console](https://console.aws.amazon.com/dynamodbv2/) and click on *Tables* from the side menu.Choose ProductCatalog table.
1717
On the **Backups** tab of the ProductCatalog table, choose **Create backup**.
1818

19-
![OD Backup 1](/static/images/hands-on-labs/backup/od_backup_1.png)
19+
:image[OD Backup 1]{src="/static/images/hands-on-labs/backup/od_backup_1.png" disableZoom=true width=950}
2020

2121
2. Make sure that ProductCatalog is the source table name. Choose **Customize settings** and then select **Backup with DynamoDB**. Enter the name `ProductCatalogBackup`. Click **Create backup** to create the backup.
2222

23-
![OD Backup 2](/static/images/hands-on-labs/backup/od_backup_2.png)
23+
:image[OD Backup 2]{src="/static/images/hands-on-labs/backup/od_backup_2.png" disableZoom=true width=850}
24+
2425

2526
While the backup is being created, the backup status is set to
2627
**Creating**. After the backup is complete, the backup status changes to
2728
**Available**.
2829

2930
### Restore Backup
3031

31-
1. Go to the [DynamoDB Console](https://console.aws.amazon.com/dynamodbv2/) and click on *Tables* from the side menu.Choose ProductCatalog table.
32-
Choose **Backups** tab. In the list of backups, choose ProductCatalogBackup.
32+
1. Click on *Tables* from the side menu. Choose the ProductCatalog table.
33+
Choose the **Backups** tab. In the list of backups, choose ProductCatalogBackup.
3334
Choose **Restore**.
3435

35-
![OD Backup 3](/static/images/hands-on-labs/backup/od_backup_3.png)
36+
:image[OD Backup 3]{src="/static/images/hands-on-labs/backup/od_backup_3.png" disableZoom=true width=850}
3637

3738
2. Enter `ProductCatalogODRestore` as the new table name. Confirm the
3839
backup name and other backup details. Choose **Restore**
@@ -41,7 +42,7 @@ While the backup is being created, the backup status is set to
4142
finished, the status of the `ProductCatalogODRestore` table changes to
4243
**Active**.
4344

44-
![OD Backup 4](/static/images/hands-on-labs/backup/od_backup_4.png)
45+
:image[OD Backup 4]{src="/static/images/hands-on-labs/backup/od_backup_4.png" disableZoom=true width=850}
4546

4647
### To delete a backup
4748

@@ -52,10 +53,11 @@ ProductCatalogBackup. You can only delete the backup after the table `ProductCat
5253
1. Choose ProductCatalog table.
5354
1. Choose **Backups** tab.
5455
1. In the list of backups, choose ProductCatalogBackup.
55-
1. Click **Delete**:
56+
1. Click **Delete**.
5657

57-
![OD Backup 5](/static/images/hands-on-labs/backup/od_backup_5.png)
58+
:image[OD Backup 5]{src="/static/images/hands-on-labs/backup/od_backup_5.png" disableZoom=true width=850}
5859

5960
Finally, type the world `Delete` and click **Delete** to delete the backup.
6061

61-
![OD Backup 6](/static/images/hands-on-labs/backup/od_backup_6.png)
62+
:image[OD Backup 6]{src="/static/images/hands-on-labs/backup/od_backup_6.png" disableZoom=true width=550}
63+

content/hands-on-labs/backups/pitr-backup.en.md

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,44 +18,43 @@ default, PITR is disabled.
1818
### How to enable PITR
1919

2020
1. First, go to the [DynamoDB Console](https://console.aws.amazon.com/dynamodbv2/) and click on *Tables* from the side menu.
21-
In the list of tables, choose the ProductCatalog table.On the **Backups** tab of the ProductCatalog table in the **Point-in-time recovery** section, choose **Edit**.
21+
In the list of tables, choose the ProductCatalog table. On the **Backups** tab of the ProductCatalog table in the **Point-in-time recovery** section, choose **Edit**.
2222

23-
![PITR Backup 1](/static/images/hands-on-labs/backup/pitr_backup_1.png)
23+
:image[PITR Backup 1]{src="/static/images/hands-on-labs/backup/pitr_backup_1.png" disableZoom=true width=850}
2424

2525
2. Select **Enable Point-in-time-recovery** and choose **Save changes**.
2626

27-
![PITR Backup 2](/static/images/hands-on-labs/backup/pitr_backup_2.png)
27+
:image[PITR Backup 2]{src="/static/images/hands-on-labs/backup/pitr_backup_2.png" disableZoom=true width=850}
2828

2929
### To restore a table to a point in time
3030

3131
Now let us say we get some unwanted records in ProductCatalog table as highlighted below.
3232

33-
![PITR Unwanted Records](/static/images/hands-on-labs/backup/pitr_unwanted_records.png)
33+
:image[PITR Unwanted Records]{src="/static/images/hands-on-labs/backup/pitr_unwanted_records.png" disableZoom=true width=1150}
3434

35-
Follow the below steps to restore ProductCatalog using Point-in-time-recovery.
35+
Follow the steps below to restore the ProductCatalog table using Point-in-time-recovery.
3636

37-
1. Sign in to the AWS Management Console and open the DynamoDB console.
38-
In the navigation pane on the left side of the console, choose
37+
1. In the navigation pane on the left side of the console, choose
3938
**Tables**. In the list of tables, choose the ProductCatalog table.
4039
On the **Backups** tab of the ProductCatalog table, in the
4140
**Point-in-time recovery** section, choose **Restore to
4241
point-in-time**.
4342

44-
![PITR Restore 1](/static/images/hands-on-labs/backup/pitr_restore_1.png)
43+
:image[PITR Restore 1]{src="/static/images/hands-on-labs/backup/pitr_restore_1.png" disableZoom=true width=950}
4544

4645
2. For the new table name, enter ProductCatalogPITR. To confirm
47-
the restorable time, set the **Restore date and time** to the **Latest
46+
the restore time, set the **Restore date and time** to the **Latest
4847
restore date**. Choose **Restore** to start the restore process.
4948

50-
![PITR Restore 2](/static/images/hands-on-labs/backup/pitr_restore_2.png)
49+
:image[PITR Restore 2]{src="/static/images/hands-on-labs/backup/pitr_restore_2.png" disableZoom=true width=950}
5150

5251
*Note : You can restore the table to the same AWS Region or to a
53-
different Region from where the backup resides. You can also exclude
52+
different region from where the backup resides. You can also exclude
5453
secondary indexes from being created on the new restored table. In
5554
addition, you can specify a different encryption mode.*
5655

5756
The table that is being restored is shown with the status **Restoring**.
5857
After the restore process is finished, the status of the
5958
*ProductCatalogPITR* table changes to **Active**.
6059

61-
![PITR Restore 3](/static/images/hands-on-labs/backup/pitr_restore_3.png)
60+
:image[PITR Restore 3]{src="/static/images/hands-on-labs/backup/pitr_restore_3.png" disableZoom=true width=950}

content/hands-on-labs/backups/restrict-backup-deletion.en.md

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,9 @@ date: 2020-04-21T07:38:58-05:00
55
weight: 65
66
---
77

8-
Customer has a common ask when they want their developer/admin should be
9-
allowed to create and delete DynamoDB tables but they shouldn’t be
10-
allowed to delete the backups.
8+
Customers often request that their developers or administrators be allowed to create and delete DynamoDB tables, but not be permitted to delete the backups.
119

12-
You can achieve this by creating IAM policy. Following is an example of
13-
the AWS IAM policy which allow “Create Table”, “List Table”, “Create
14-
Backup” and “Delete Table” and denies “Delete Backup” of DynamoDB table.
10+
This can be achieved by creating an IAM policy. The following is an example of an AWS IAM policy that allows “Create Table,” “List Tables,” “Create Backup,” and “Delete Table”, while denying the “Delete Backup” action on DynamoDB tables.
1511

1612
```json
1713

@@ -49,8 +45,7 @@ Backup” and “Delete Table” and denies “Delete Backup” of DynamoDB tabl
4945

5046

5147

52-
You can restrict in AWS backup by denying as well by denying
53-
“DeleteBackupSelection” in IAM policy.
48+
You can also restrict backup deletion in AWS Backup by adding an explicit Deny statement for the “DeleteBackupSelection” Action in an IAM policy.
5449

5550
```json
5651

@@ -61,7 +56,6 @@ You can restrict in AWS backup by denying as well by denying
6156
"Sid": "VisualEditor0",
6257
"Effect": "Allow",
6358
"Action": [
64-
"backup:DeleteBackupSelection",
6559
"backup:CreateBackupSelection",
6660
"backup:StartBackupJob",
6761
"backup:CreateBackupPlan",
@@ -86,14 +80,11 @@ You can restrict in AWS backup by denying as well by denying
8680

8781

8882
```
89-
You can apply the policy to role and assign the role to IAM group. Now
90-
users belonging to this IAM group will inherit the permission.
83+
You can apply the policy to a role and assign the role to an IAM group, so users belonging to the IAM group inherit the permission.
9184

92-
Let’s say now the user tries to delete the backup in AWS backup.
93-
94-
![Restrict Backup Deletion 1](/static/images/hands-on-labs/backup/restrict_delete_1.png)
95-
96-
User gets the access denied error due to insufficient permission to
85+
If a user now tries to delete the backup in AWS backup, they will received an access denied error due to insufficient permissions to
9786
delete the backup.
9887

99-
![Restrict Backup Deletion 2](/static/images/hands-on-labs/backup/restrict_delete_2.png)
88+
:image[Restrict Backup Deletion 1]{src="/static/images/hands-on-labs/backup/restrict_delete_1.png" disableZoom=true width=1150}
89+
90+
:image[Restrict Backup Deletion 2]{src="/static/images/hands-on-labs/backup/restrict_delete_2.png" disableZoom=true width=1050}

content/hands-on-labs/backups/schedule-backup.en.md

Lines changed: 31 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -12,103 +12,97 @@ starting a backup job.
1212
1. In the AWS Management Console, navigate to **Services -&gt; AWS
1313
Backup.** Click on **Create Backup vault** under **Backup vaults**.
1414

15-
![Scheduled Backup 1](/static/images/hands-on-labs/backup/sched_backup_1.png)
15+
:image[Scheduled Backup 1]{src="/static/images/hands-on-labs/backup/sched_backup_1.png" disableZoom=true width=950}
16+
1617

1718
2. Provide Backup vault name of your choice. AWS KMS encryption master
1819
key. By default, AWS Backup creates a master key with the alias
1920
aws/backup for you. You can choose that key or choose any other key
20-
in your account. Click on **Create Backup vault**
21+
in your account. Click on **Create Backup vault**.
2122

22-
![Scheduled Backup 2](/static/images/hands-on-labs/backup/sched_backup_2.png)
23+
:image[Scheduled Backup 2]{src="/static/images/hands-on-labs/backup/sched_backup_2.png" disableZoom=true width=650}
2324

24-
You can see Backup vault is created successfully
25+
After a few moments, you will see the Backup vault has been created successfully.
2526

26-
![Scheduled Backup 3](/static/images/hands-on-labs/backup/sched_backup_3.png)
27+
:image[Scheduled Backup 3]{src="/static/images/hands-on-labs/backup/sched_backup_3.png" disableZoom=true width=650}
2728

2829
Now, we need to create backup plan.
2930

3031
3. Click on **Create Backup plan** under **Backup plans**.
3132

32-
![Scheduled Backup 4](/static/images/hands-on-labs/backup/sched_backup_4.png)
33+
:image[Scheduled Backup 4]{src="/static/images/hands-on-labs/backup/sched_backup_4.png" disableZoom=true width=950}
3334

3435
4. Select **Build a new plan**. Provide **backup plan name** and **rule
3536
name**.
3637

37-
![Scheduled Backup 5](/static/images/hands-on-labs/backup/sched_backup_5.png)
38+
:image[Scheduled Backup 5]{src="/static/images/hands-on-labs/backup/sched_backup_5.png" disableZoom=true width=650}
3839

39-
5. Select **backup frequency.** The backup frequency determines how
40+
5. Select the **backup vault** we created earlier. Next, select **backup frequency.** The backup frequency determines how
4041
often a backup is created. Using the console, you can choose a
4142
**frequency** of every 12 hours, daily, weekly, or monthly. Choose a
42-
**backup window**. Backup window consists of the time that the
43-
backup window begins and the duration of the window in hours. Backup
44-
jobs are started within this window. I am configuring backup at 6 PM
45-
UTC start within 1 hour and completes within 4 hours.
46-
47-
Further, select **lifecycle**. The lifecycle defines when a backup is
48-
transitioned to cold storage and when it expires. I am configuring
49-
backup to move cold storage after 31 days and expire after 366 days.
43+
**backup window**. The backup window consists of the time when the
44+
backup begins and the duration of the window in hours. Backup
45+
jobs are started within this window. Here, we are configuring the backup to start within 1 hour of 18:00 UTC and to complete within 4 hours.
5046

51-
![Scheduled Backup 6](/static/images/hands-on-labs/backup/sched_backup_6.png)
47+
:image[Scheduled Backup 6]{src="/static/images/hands-on-labs/backup/sched_backup_6.png" disableZoom=true width=650}
5248

49+
6. Select **Lifecycle**. The lifecycle defines when a backup is transitioned to cold storage and when it expires. Here, we are configuring the backup to move cold storage after 31 days and to expire after 365 days.
5350

54-
6. Select **backup vault** we created earlier. Click on **Create
55-
plan**.
51+
:image[Scheduled Backup 7]{src="/static/images/hands-on-labs/backup/sched_backup_7.png" disableZoom=true width=650}
5652

57-
![Scheduled Backup 7](/static/images/hands-on-labs/backup/sched_backup_7.png)
53+
7. At the bottom of the page, click on **Create plan**.
5854

5955
*Note: Backups that are transitioned to cold storage must be stored in
6056
cold storage for a minimum of 90 days*
6157

62-
Now assign the resource to backup plan. When you assign a resource to a
58+
Next, assign the resource to backup plan. When you assign a resource to a
6359
backup plan, that resource is backed up automatically according to the
6460
backup plan.
6561

66-
7. Give Resource a assignment name. Choose the default role. Select **Include specific resource types** under "1. Define resource selection"
62+
8. Give Resource a assignment name. Choose the default role. Under "**1. Define resource selection**", select **Include specific resource types**.
6763

68-
![Scheduled Backup 8](/static/images/hands-on-labs/backup/sched_backup_8.png)
64+
:image[Scheduled Backup 8]{src="/static/images/hands-on-labs/backup/sched_backup_8.png" disableZoom=true width=650}
6965

70-
8. Under "2. Select specific resource types" select the resource type **DynamoDB** in the drop down. Click choose resources, uncheck All, and select the **ProductCatalog** table. Click **Assign resources**
66+
9. Under "**2. Select specific resource types**", select the resource type **DynamoDB** in the dropdown. Click choose resources, uncheck **All Tables**, and select the **ProductCatalog** table. Click **Assign resources**.
7167

72-
![Scheduled Backup 9](/static/images/hands-on-labs/backup/sched_backup_9.png)
68+
:image[Scheduled Backup 9]{src="/static/images/hands-on-labs/backup/sched_backup_9.png" disableZoom=true width=650}
7369

74-
9. You can see the status of your backup job under jobs section after
75-
your scheduled backup window timeframe. You can see your DynamoDB
76-
backup is completed.
70+
10. You will only be able to see the status of your backup job under the jobs section after your scheduled backup window timeframe has passed. You will be able to see that your DynamoDB backup completed successfully.
7771

78-
![Scheduled Backup 10](/static/images/hands-on-labs/backup/sched_backup_10.png)
7972

80-
### Restore a Backup:
73+
### Restore a Backup
8174

8275
After a resource has been backed up at least once, it is considered
83-
protected and is available to be restored using AWS Backup. In your account a backup may not yet be available. If this is the case, review the screenshots in lieu of doing this in your own account.
76+
protected and is available to be restored using AWS Backup. A backup may not yet be available in your account. If this is the case, simply review the process below.
8477

8578
1. On the **Protected resources** page, you can explore details of the
8679
resources that are backed up in AWS Backup. Choose our DynamoDB
8780
table resource.
8881

89-
![Scheduled Backup 11](/static/images/hands-on-labs/backup/sched_backup_11.png)
82+
:image[Scheduled Backup 11]{src="/static/images/hands-on-labs/backup/sched_backup_11.png" disableZoom=true width=650}
9083

9184
2. Choose the recovery point ID of the resource. Click on **Restore**. _Note: If you do not see a recovery point, you can click "Create an on-demand backup" and complete the backup. For the purposes of this lab, you need a completed backup to continue, and you may not want to wait for your backup plan's scheduled backup._
9285

93-
![Scheduled Backup 12](/static/images/hands-on-labs/backup/sched_backup_12.png)
86+
:image[Scheduled Backup 12]{src="/static/images/hands-on-labs/backup/sched_backup_12.png" disableZoom=true width=650}
9487

9588
3. Provide new DynamoDB table name. Leave all the settings on the defaults and click
9689
**Restore backup**
9790

98-
![Scheduled Backup 13](/static/images/hands-on-labs/backup/sched_backup_13.png)
91+
:image[Scheduled Backup 13]{src="/static/images/hands-on-labs/backup/sched_backup_13.png" disableZoom=true width=650}
9992

10093
The **Restore jobs** pane appears. A message at the top of the page
10194
provides information about the restore job. You can see job status is
10295
running.After some time you can see status changes to completed
10396

104-
![Scheduled Backup 14](/static/images/hands-on-labs/backup/sched_backup_14.png)
97+
98+
:image[Scheduled Backup 14]{src="/static/images/hands-on-labs/backup/sched_backup_14.png" disableZoom=true width=650}
10599

106100
You can also monitor the all backup and restore jobs in central
107101
dashboard.
108102

109-
![Scheduled Backup 15](/static/images/hands-on-labs/backup/sched_backup_15.png)
103+
:image[Scheduled Backup 15]{src="/static/images/hands-on-labs/backup/sched_backup_15.png" disableZoom=true width=650}
110104

111105
To see the restored table, go to the [DynamoDB Console](https://console.aws.amazon.com/dynamodbv2/) and click on *Tables* from the side menu.Choose
112106
*ProductCatalogRestored* table. You can see the table is restored along with data.
113107

114-
![Scheduled Backup 16](/static/images/hands-on-labs/backup/sched_backup_16.png)
108+
:image[Scheduled Backup 16]{src="/static/images/hands-on-labs/backup/sched_backup_16.png" disableZoom=true width=650}

content/hands-on-labs/explore-console/console-gsi.en.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Armed with this knowledge of GSIs, we can now create a GSI on the **Reply** tabl
1414

1515
Navigate to the **Reply** table, switch to the **Indexes** tab and click `Create Index`.
1616

17-
![Console Create GSI 1](/static/images/hands-on-labs/explore-console/console_create_gsi_1.png)
17+
:image[Console Create GSI 1]{src="/static/images/hands-on-labs/explore-console/console_create_gsi_1.png" disableZoom=true width=850}
1818

1919
Enter `PostedBy` as the Partition key, `ReplyDateTime` as the Sort key, and `PostedBy-ReplyDateTime-gsi` as the Index name. Leave the other settings as defaults and click `Create Index`. Once the index leaves the `Creating` state you can continue on to the exercise below.
2020

@@ -34,11 +34,11 @@ The solution is expandable below but try to figure it out yourself before moving
3434

3535
Even if the table has a billion **Reply** items authored by other Users, this query will only cost us to read the exact 3 items we're hoping to return (unlike a `Scan`).
3636

37-
![Console Create GSI 2](/static/images/hands-on-labs/explore-console/console_create_gsi_2.png)
37+
:image[Console Create GSI 2]{src="/static/images/hands-on-labs/explore-console/console_create_gsi_2.png" disableZoom=true width=850}
3838
::::
3939

4040
### Cleanup
4141

4242
When you're done, make sure to remove the GSI. Return to the Indexes tab, select the `PostedBy-ReplyDateTime-gsi` index and click `Delete`.
4343

44-
![Console Delete GSI](/static/images/hands-on-labs/explore-console/console_delete_gsi.png)
44+
:image[Console Delete GSI]{src="/static/images/hands-on-labs/explore-console/console_delete_gsi.png" disableZoom=true width=850}

0 commit comments

Comments
 (0)