Skip to content

Commit 10d5dd4

Browse files
committed
update the doc
1 parent aeb82cb commit 10d5dd4

File tree

2 files changed

+3
-19
lines changed

2 files changed

+3
-19
lines changed

.github/workflows/main.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,6 @@ jobs:
5555
run: |
5656
make deploy
5757
58-
- name: Run AWS CLI command
59-
run: |
60-
sleep 10
61-
make run
62-
6358
- name: Integration Tests
6459
run: |
6560
make test

README.md

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -98,24 +98,13 @@ This function requires two parameters:
9898
- `sqlQuery`, which specifies the SQL command to execute
9999
- `secretName`, which provides the name of the secret containing the database connection details.
100100

101-
To run a query using AWS CLI version 1, you can invoke the Lambda function with the following command:
101+
To run a query using AWS CLI, you can invoke the Lambda function with the following command:
102102

103103
```shell
104-
awslocal lambda invoke \
105-
--function-name my-lambda-rds-query-helper \
106-
--payload '{"sqlQuery": "select Author from books", "secretName":"/rdsinitexample/rds/creds/mysql-01"}' output
104+
make run
107105
```
108106

109-
If you are using AWS CLI version 2, the command must include an additional flag for payload formatting:
110-
111-
```shell
112-
awslocal lambda invoke \
113-
--cli-binary-format raw-in-base64-out \
114-
--function-name my-lambda-rds-query-helper \
115-
--payload '{"sqlQuery": "select Author from books", "secretName":"/rdsinitexample/rds/creds/mysql-01"}' output
116-
```
117-
118-
After invoking the function, you can view the results using the command `cat output`. The output will contain the execution status and results, for example:
107+
The output will contain the execution status and results, for example:
119108

120109
```shell
121110
{"status":"SUCCESS","results":[{"Author":"Jane Doe"},{"Author":"Jane Doe"},{"Author":"LocalStack"}]}

0 commit comments

Comments
 (0)