From 9784bd4774ab3f239ecf1e4bb888a34bcc46ec76 Mon Sep 17 00:00:00 2001 From: Sebastien Stormacq Date: Wed, 13 Dec 2023 20:26:16 -0500 Subject: [PATCH] add a section about dpeloyment costs and cleanup instructions --- README.md | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5c85c76..668c41b 100644 --- a/README.md +++ b/README.md @@ -426,9 +426,19 @@ curl [[ Replace with SWIFTAPIEndpoint value ]]/stocks/AAPL } ``` -6. Delete the infrastructure +## Deployment costs -There is no cost +On new AWS accounts, there is no cost associated with teh deployment and test of this sample code. It falls under the permananet AWS free Tier for [AWS Lambda](https://aws.amazon.com/lambda/pricing/) and [Amazon API Gateway](https://aws.amazon.com/lambda/pricing/) + +When you're account is older than a year, you are charged $1.0 per million calls to the API Gateway. + +## Cleanup + +To delete the AWS Lambda function, the API Gateway, and the roles and permissions created with `sam`, just type: + +```sh +sam delete +``` ## Local Testing