This project was created as a LIVE demo during a talk at the AWS User Group Roma.
The template.yaml was entirely created in a visual way using AWS Application Composer
This application consists of 3 main components:
- An API Gateway with a
GET /endpoint - A Lambda function (triggered by API Gateway)
- An S3 bucket where the Lambda function can create files
To be able to deploy this project you will need:
- An AWS Account
- The AWS CLI installed and configured in your machine
- The AWS SAM CLI installed in your machine
- Node.js (18+) and NPM
To install all the necessary Node.js modules:
cd src/Function
npm installFrom the root folder:
sam buildsam deploy --guidedFollow the guided procedure to complete the deployment.
Once you have your project deployed you can get the URL of your API Gateway endpoint from the API Gateway web console.
If you make a request to the API Gateway endpoint, you should receive a positive response and a new file will be created in the S3 bucket.
To clean up all the resources created by this template you need to delete all the files in the S3 bucket and then run:
sam deleteand follow the guided procedure.
Everyone is very welcome to contribute to this project. You can contribute just by submitting bugs or suggesting improvements by opening an issue on GitHub.
Licensed under MIT License. © Luciano Mammino.
