https://github.com/danielcaz/xray-demo
This is a demo api that includes X-Ray tracing for testing purposes.
https://github.com/danielcaz/xray-demo
aws aws-apigateway aws-lambda aws-xray
Last synced: 7 months ago
JSON representation
This is a demo api that includes X-Ray tracing for testing purposes.
- Host: GitHub
- URL: https://github.com/danielcaz/xray-demo
- Owner: DanielCaz
- License: mit
- Created: 2024-01-05T19:13:41.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-05T19:19:40.000Z (over 1 year ago)
- Last Synced: 2024-01-05T20:29:25.401Z (over 1 year ago)
- Topics: aws, aws-apigateway, aws-lambda, aws-xray
- Language: Python
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# X-Ray Demo
## Description
This is a demo api that includes X-Ray tracing for testing purposes.
## Usage
### Deploy
```bash
sam deploy
```### Invoke
#### Get all items
```bash
curl -X GET https://.execute-api..amazonaws.com/Dev
```#### Get item by id
```bash
curl -X GET https://.execute-api..amazonaws.com/Dev/
```#### Create/Update item
```bash
curl -X POST https://.execute-api..amazonaws.com/Dev -d '{ "id": "", "name": "" }'
```#### Delete item
```bash
curl -X DELETE https://.execute-api..amazonaws.com/Dev/
```## Resources created
- Lambda functions for CRUD operations
- DynamoDB table
- API Gateway
- IAM roles and policies
- X-Ray tracing