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
Copy file name to clipboardExpand all lines: apigw-lambda-dsql/README.md
+15-9Lines changed: 15 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,10 @@
1
-
# AWS Service 1 to AWS Service 2
1
+
# Amazon API Gateway, AWS Lambda and Amazon Aurora DSQL
2
2
3
-
This pattern << explain usage >>
3
+
Amazon Aurora DSQL is the fastest serverless, distributed SQL database with active-active high availability and multi-Region strong consistency. Aurora DSQL enables you to build always available applications with virtually unlimited scalability, the highest availability, and zero infrastructure management. It is designed to make scaling and resilience effortless for your applications and offers the fastest distributed SQL reads and writes.
4
4
5
-
Learn more about this pattern at Serverless Land Patterns: << Add the live URL here >>
5
+
This pattern deploys a API Gateway REST API, Lambda function and an Aurora DSQL PostgreSQL cluster.
6
+
7
+
Learn more about this pattern at [Serverless Land Patterns](https://serverlessland.com/patterns/apigw-lambda-dsql)
6
8
7
9
Important: this application uses various AWS services and there are costs associated with these services after the Free Tier usage - please see the [AWS Pricing page](https://aws.amazon.com/pricing/) for details. You are responsible for any AWS costs incurred. No warranty is implied in this example.
8
10
@@ -21,15 +23,16 @@ Important: this application uses various AWS services and there are costs associ
21
23
```
22
24
1. Change directory to the pattern directory:
23
25
```
24
-
cd _patterns-model
26
+
cd apigw-lambda-dsql
25
27
```
26
28
1. From the command line, use AWS SAM to deploy the AWS resources for the pattern as specified in the template.yml file:
27
29
```
30
+
sam build
28
31
sam deploy --guided
29
32
```
30
33
1. During the prompts:
31
34
* Enter a stack name
32
-
* Enter the desired AWS Region
35
+
* Enter the desired AWS Region (verify which [regions Aurora DSQL is available in](https://aws.amazon.com/rds/aurora/dsql/faqs/))
33
36
* Allow SAM CLI to create IAM roles with the required permissions.
34
37
35
38
Once you have run `sam deploy --guided` mode once and saved arguments to a configuration file (samconfig.toml), you can use `sam deploy` in future to use these defaults.
@@ -38,23 +41,26 @@ Important: this application uses various AWS services and there are costs associ
38
41
39
42
## How it works
40
43
41
-
Explain how the service interaction works.
44
+
This sample project demonstrates how to use a Lambda function (invoked by API Gateway), that stores and retrieves data from an Amazon Aurora DSQL PostgreSQL cluster.
42
45
43
46
## Testing
44
47
45
-
Provide steps to trigger the integration and show what should be observed if successful.
48
+
Use the `Value` from `UsersApi` URL output from the above `sam deploy` command to invoke the API Gateway API, e.g:
0 commit comments