run the bootstrap step in the region you're going to deploy to
cdk bootstrap
npm install
npm run deploy
npm run deploy
curl -X POST ${API_URL}db/create-table
The response should look like:
{
"message": "Table created successfully"
}
You can test the insert endpoint by sending a POST request with the required parameters:
# Call the insert endpoint with sample data
curl -X POST ${API_URL}db/insert \
-H "Content-Type: application/json" \
-d '{
"parameter": "example_param",
"value": "This is an example value"
}'
In Datadog > APM > Traces > Explorer, search by service:aurora
and the expected trace looks like following.
curl -X GET "${API_URL}db/get-record?parameter=example_param"
In Datadog > APM > Traces > Explorer, search by service:aurora
and the expected trace looks like following.
The cdk.json
file tells the CDK Toolkit how to execute your app.
npm run build
compile typescript to jsnpm run watch
watch for changes and compilenpm run test
perform the jest unit testsnpx cdk deploy
deploy this stack to your default AWS account/regionnpx cdk diff
compare deployed stack with current statenpx cdk synth
emits the synthesized CloudFormation template