Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 5eff558

Browse files
authored
Merge pull request #34 from sliedig/develop
Lab2 content updates. Resolves issues #26 and #33
2 parents b8078b0 + 2db4a0a commit 5eff558

File tree

18 files changed

+65
-26
lines changed

18 files changed

+65
-26
lines changed

‎workshop/content/topic-queue-chaining-and-load-balancer/create-customer-accounting-service-subscription/create-customer-accounting-service-subscription-console.md

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,26 +20,41 @@ Enter `CustomerAccountingServiceQueue` as **Queue Name**, make sure **Standard Q
2020

2121
#### 2. Create a new subscription
2222

23-
After selecting the queue **CustomerAccountingServiceQueue**, click the **Queue Actions** drop down in the top left corner and chose **Subscribe Queue to SNS Topic**.
23+
After creating the queue **CustomerAccountingServiceQueue**, click the **Subscribe to Amazon SNS Topic** button in the SNS Subscriptions tab.
2424

2525
{{%expand "Detailed description" %}}
2626
![Step 3](step-3-console.png)
2727
{{% /expand%}}
2828

29-
In the pop up window, select the **RideCompletionTopic** and click **Subscribe**. Click **Ok** in the confirmation dialog.
29+
In the Subscribe to Amazon SNS topic window, select the **RideCompletionTopic** and click **Save**.
3030

3131
{{%expand "Detailed description" %}}
3232
![Step 4](step-4-console.png)
3333
{{% /expand%}}
3434

35-
#### 3. Validate the subscription confirmation
35+
#### 3. Validate the subscription and add the filter to the subscription
3636

37-
Browse to your **[Amazon SNS console](https://console.aws.amazon.com/sns/v3/home?#/topics)** to list your existing topics. Select the **RideCompletionTopic** and verify, the subscription has the status **Confirmed**.
37+
Select the newly created subscription from the SNS subscriptions list and click the **View in SNS** button (this should open a new tab to the subscription in the **[Amazon SNS console](https://console.aws.amazon.com/sns/v3/home?#/topics)**).
3838

3939
{{%expand "Detailed description" %}}
4040
![Step 5](step-5-console.png)
4141
{{% /expand%}}
4242

43+
Confirm that the Status of the subscription is **Confirmed**.
44+
45+
{{%expand "Detailed description" %}}
46+
![Step 5](step-5-1-console.png)
47+
{{% /expand%}}
48+
49+
Click **Edit** to modify the subscription.
50+
51+
In the Edit subscription screen, click **Enable raw message delivery**. Click **Save Changes**
52+
53+
{{%expand "Detailed description" %}}
54+
![Step 6](step-5-2-console.png)
55+
{{% /expand%}}
56+
57+
Now that we have updated the subscription, let's set the IAM policy for our Lambda function to access the queue.
4358

4459
#### 4. Grant permissions to our function to access the Amazon SQS queue
4560

@@ -82,14 +97,14 @@ Select the **JSON** tab and passed the following policy statement into it, after
8297
Make sure you provide the AWS ACCOUNT ID in the form of XXXXXXXXXXXX and not XXXX-XXXX-XXXX!
8398
{{% /notice %}}
8499

85-
Click **Review policy** and enter the **Name** `CustomerAccountingServiceRolePolicy0`. Click **Create policy**. To validate this step, select on the role again and your should see 3 policies attached to your role, including the one you just have created:
100+
Click **Review policy** and enter the **Name** `CustomerAccountingServiceRolePolicy0`. Click **Create policy**. To validate this step, select on the role again and your should see 2 policies attached to your role, including the one you just have created:
86101

87102
{{%expand "Detailed description" %}}
88103
![Step 8](step-8-console.png)
89104
{{% /expand%}}
90105

91106

92-
#### 5. Add the Amazon SQS queue as event source for your Customer Notification Service AWS Lambda function
107+
#### 5. Add the Amazon SQS queue as event source for your Customer Accounting Service AWS Lambda function
93108

94109
Open your **[AWS Lambda console](https://console.aws.amazon.com/lambda/home?#/functions)** and select **Functions** in the left navigation. Click on the function with the name **wild-rydes-async-msg-2-CustomerAccounting...** (assuming your have chosen `wild-rydes-async-msg-2` as your stack name). Click on the **+ Add Trigger** button on the left side of the page:
95110

-1.14 KB
Loading[フレーム]
-77.6 KB
Loading[フレーム]
59.7 KB
Loading[フレーム]
86.2 KB
Loading[フレーム]
-218 KB
Loading[フレーム]

‎workshop/content/topic-queue-chaining-and-load-balancer/create-customer-notification-service-subscription/create-customer-notification-service-subscription-console.md

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ Enter `CustomerNotificationServiceQueue` as **Queue Name**, make sure **Standard
2020

2121
#### 2. Create a new subscription
2222

23-
After selecting the queue **CustomerNotificationServiceQueue**, click the **Queue Actions** drop down in the top left corner and chose **Subscribe Queue to SNS Topic**.
23+
After creating the queue **CustomerNotificationServiceQueue**, click the **Subscribe to Amazon SNS Topic** button in the SNS Subscriptions tab.
2424

2525
{{%expand "Detailed description" %}}
2626
![Step 3](step-3-console.png)
2727
{{% /expand%}}
2828

29-
In the pop up window, select the **RideCompletionTopic** and click **Subscribe**. Click **Ok** in the confirmation dialog.
29+
In the Subscribe to Amazon SNS topic window, select the **RideCompletionTopic** and click **Save**.
3030

3131
{{%expand "Detailed description" %}}
3232
![Step 4](step-4-console.png)
@@ -35,17 +35,31 @@ In the pop up window, select the **RideCompletionTopic** and click **Subscribe**
3535
{{% notice tip %}}
3636
You may wondering why we don't create the subscription from the Amazon SNS console as shown below. If we create a subscription from Amazon SNS to Amazon SQS, Amazon SNS will send a confirmation message first to Amazon SQS. As long as this subscription is not confirmed, Amazon SNS will not start sending messages to Amazon SQS.
3737
By initiating the subscription from the subscriber side, this is not necessary.
38-
![Tip](tip.png)
3938
{{% /notice %}}
4039

41-
#### 3. Validate the subscription confirmation
40+
#### 3. Validate the subscription and add the filter to the subscription
4241

43-
Browse to your **[Amazon SNS console](https://console.aws.amazon.com/sns/v3/home?#/topics)** to list your existing topics. Select the **RideCompletionTopic** and verify, the subscription has the status **Confirmed**.
42+
Select the newly created subscription from the SNS subscriptions list and click the **View in SNS** button (this should open a new tab to the subscription in the **[Amazon SNS console](https://console.aws.amazon.com/sns/v3/home?#/topics)**).
4443

4544
{{%expand "Detailed description" %}}
46-
![Step 5](step-5-console.png)
45+
![Step 4](step-5-console.png)
4746
{{% /expand%}}
4847

48+
Confirm that the Status of the subscription is **Confirmed**.
49+
50+
{{%expand "Detailed description" %}}
51+
![Step 4](step-5-1-console.png)
52+
{{% /expand%}}
53+
54+
Click **Edit** to modify the subscription.
55+
56+
In the Edit subscription screen, click **Enable raw message delivery**. Click **Save Changes**
57+
58+
{{%expand "Detailed description" %}}
59+
![Step 6](step-5-2-console.png)
60+
{{% /expand%}}
61+
62+
Now that we have updated the subscription, let's set the IAM policy for our Lambda function to access the queue.
4963

5064
#### 4. Grant permissions to our function to access the Amazon SQS queue
5165

@@ -88,7 +102,7 @@ Select the **JSON** tab and passed the following policy statement into it, after
88102
Make sure you provide the AWS ACCOUNT ID in the form of XXXXXXXXXXXX and not XXXX-XXXX-XXXX!
89103
{{% /notice %}}
90104

91-
Click **Review policy** and enter the **Name** `CustomerNotificationServiceRolePolicy0`. Click **Create policy**. To validate this step, select on the role again and your should see 3 policies attached to your role, including the one you just have created:
105+
Click **Review policy** and enter the **Name** `CustomerNotificationServiceRolePolicy0`. Click **Create policy**. To validate this step, select on the role again and your should see 2 policies attached to your role, including the one you just have created:
92106

93107
{{%expand "Detailed description" %}}
94108
![Step 8](step-8-console.png)
-479 Bytes
Loading[フレーム]
-52.4 KB
Loading[フレーム]
60.6 KB
Loading[フレーム]

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /