You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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]>
Copy file name to clipboardExpand all lines: content/hands-on-labs/backups/on-demand-backup.en.md
+11-9Lines changed: 11 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,23 +16,24 @@ table performance or availability.
16
16
1. First, go to the [DynamoDB Console](https://console.aws.amazon.com/dynamodbv2/) and click on *Tables* from the side menu.Choose ProductCatalog table.
17
17
On the **Backups** tab of the ProductCatalog table, choose **Create backup**.
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.
Copy file name to clipboardExpand all lines: content/hands-on-labs/backups/pitr-backup.en.md
+11-12Lines changed: 11 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,44 +18,43 @@ default, PITR is disabled.
18
18
### How to enable PITR
19
19
20
20
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**.
Copy file name to clipboardExpand all lines: content/hands-on-labs/backups/restrict-backup-deletion.en.md
+8-17Lines changed: 8 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,13 +5,9 @@ date: 2020-04-21T07:38:58-05:00
5
5
weight: 65
6
6
---
7
7
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.
11
9
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.
15
11
16
12
```json
17
13
@@ -49,8 +45,7 @@ Backup” and “Delete Table” and denies “Delete Backup” of DynamoDB tabl
49
45
50
46
51
47
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.
54
49
55
50
```json
56
51
@@ -61,7 +56,6 @@ You can restrict in AWS backup by denying as well by denying
61
56
"Sid": "VisualEditor0",
62
57
"Effect": "Allow",
63
58
"Action": [
64
-
"backup:DeleteBackupSelection",
65
59
"backup:CreateBackupSelection",
66
60
"backup:StartBackupJob",
67
61
"backup:CreateBackupPlan",
@@ -86,14 +80,11 @@ You can restrict in AWS backup by denying as well by denying
86
80
87
81
88
82
```
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.
91
84
92
-
Let’s say now the user tries to delete the backup in AWS backup.
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.
53
50
54
-
6. Select **backup vault** we created earlier. Click on **Create
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**.
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.
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.
84
77
85
78
1. On the **Protected resources** page, you can explore details of the
86
79
resources that are backed up in AWS Backup. Choose our DynamoDB
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._
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.
20
20
@@ -34,11 +34,11 @@ The solution is expandable below but try to figure it out yourself before moving
34
34
35
35
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`).
0 commit comments