Proof of concept to present some services provided by AWS.
Amazon Web Services (AWS) is a cloud service provider that offers IT infrastructure services to companies, which is popularly known as cloud computing. In theory, it allows you to reduce infrastructure costs and speed up the acquisition of hardware.
Features:
- Save transaction
- Get transactions by user
Documentation:
Covered Services:
$ docker-compose up -d
# save transaction
$ aws sns publish --endpoint-url http://localhost:4566 --topic-arn "arn:aws:sns:us-east-1:000000000000:SaveTransactionTopic" --message '{"user":"john","amount":"999.99","type":"TRANSFER_SENT"}'
# get rest_api_id
$ rest_api_id=`aws apigateway get-rest-apis --endpoint-url http://localhost:4566 | jq -r '.items[]|select(.name == "get-transactions-api")|.id'`
# check saved transactions
$ curl http://${rest_api_id}.execute-api.localhost.localstack.cloud:4566/dev/transactions?user=john
If you have any feedback, please contact me at raphaeldias.ti@gmail.com