Simple AWS Lambda sample in TypeScript
This repository is a simple AWS Lambda sample.
The Lambda function get weather news form livedoor Web API and send push notification via Amazon SNS.
Execute below commands
$ npm install
$ npm start
Make S3 bukcet
$ bundle install --path vendor/bundle
$ bundle exec rake s3:create BUCKET={your_bucket_name}
Make CloudFormation template
$ bundle exec rake cfn:create
Execute CloudFormation with template
$ bundle exec rake cfn:execute BUCKET={your_bucket_name}
Add an Amazon SNS subscription
$ bundle exec rake sns:subscribe TOPIC_ARN={your_sns_topic_arn} ENDPOINT={your_email_addresss}
$ bundle exec rake s3:delete BUCKET={your_bucket_name}
$ bundle exec rake cfn:delete
MIT