Skip to content

Commit 9a6f416

Browse files
authored
Update README.md
1 parent e3bcf89 commit 9a6f416

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

apigw-kinesis-lambda-ddb/README.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ Once the application is deployed:
5252
- Invoke the endpoint from Postman using some json payload and verify the payload saved in DynamoDB.
5353
5454
Request:
55-
- Request URL: https://{RestApiEndpoint}.execute-api.us-east-1.amazonaws.com/{gatewayStage}/submit/{streamName}/{eventId}
55+
- Request URL: https://{RestApiEndpoint}.execute-api.{Region}.amazonaws.com/{gatewayStage}/submit/{streamName}/{eventId}
56+
- Region - Name of AWS Resion, Example: us-east-1
5657
- gatewayStage - Name of the API Gateway Stage. A stage is a named reference to a deployment, which is a snapshot of the API. "prod" is the stage name used in the SAM template.
5758
- streamName - This is the name of kinesis stream created i.e., GatewayEventsStream
5859
- eventId - Value in this attribute is used to choose PartitionKey in Kinesis stream. This example uses a single shard but when multiple shards are used, this eventId should be unique to share the load with multiple shards. Example: 55ad376f-86bf-4b06-9d3a-23237464dbd4
@@ -61,20 +62,17 @@ Request:
6162
- Request Header: "Authorization: Basic <credentials>" (where credentials is the Base64 encoding of ID and password joined by a single colon :)
6263
- Request Body: {"eventId":"value1", "message":"event message for testing"} (This could be any JSON payload)
6364
65+
Example URL: https://abc1234def.execute-api.us-east-1.amazonaws.com/prod/submit/GatewayEventsStream/55ad376f-86bf-4b06-9d3a-23237464dbd4
66+
6467
## Cleanup
6568
6669
1. Delete the stack
6770
```bash
68-
aws cloudformation delete-stack --stack-name STACK_NAME
69-
```
70-
1. Confirm the stack has been deleted
71-
```bash
72-
aws cloudformation list-stacks --query "StackSummaries[?contains(StackName,'STACK_NAME')].StackStatus"
71+
sam delete
7372
```
74-
7573
This pattern was contributed by Ravi Kiran Ganji.
7674
7775
----
7876
Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
7977
80-
SPDX-License-Identifier: MIT-0
78+
SPDX-License-Identifier: MIT-0

0 commit comments

Comments
 (0)