Created
April 23, 2019 21:47
-
-
Save mobilequickie/8638752df2149bed5496ae000fbab558 to your computer and use it in GitHub Desktop.
Executing a select * statement against an Aurora Serverless Data API enabled database using the "rds-data" API from the AWS CLI
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Select * query from Aurora Serverless (w/ Data API enabled) using the "execute-sql" API | |
aws rds-data execute-sql --db-cluster-or-instance-arn "arn:aws:rds:us-east-1:xxxxxxxxxxxx:cluster:my-serverless-cluster" --schema "" \ | |
--database "MarketPlace" --aws-secret-store-arn "arn:aws:secretsmanager:us-east-1:xxxxxxxxxxxx:secret:RDSAuroraServerlessMasterSecret-3haLhV" \ | |
--sql-statements "select * from Customers" --region us-east-1 \ | |
--endpoint-url https://rds-data.us-east-1.amazonaws.com |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
// Sample result for 2 rows returned from above sql select statement via the AWS CLI using --> aws rds-data execute-sql