TypeScript JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.vscode
.gitattributes
.gitignore
Gemfile
Gemfile.lock
LICENSE
README.md
Rakefile
gulpfile.js
index.ts
package.json
template.rb
tsconfig.json
tslint.json
types.ts
yarn.lock

README.md

AWS Lambda Sample

Content

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.

Development tools

  • Node.js v4.3.2
  • Ruby v2.3.3
  • bundler v1.13.6
  • aws cli v1.11.44

Usage

Create Bucket and Resources

  1. Execute below commands

    $ npm install
    $ npm start
  2. Make S3 bukcet

    $ bundle install --path vendor/bundle
    $ bundle exec rake s3:create BUCKET={your_bucket_name}
  3. Make CloudFormation template

    $ bundle exec rake cfn:create
  4. Execute CloudFormation with template

    $ bundle exec rake cfn:execute BUCKET={your_bucket_name}
  5. Add an Amazon SNS subscription

    $ bundle exec rake sns:subscribe TOPIC_ARN={your_sns_topic_arn} ENDPOINT={your_email_addresss}

Delete

  • Delete s3 bucket and resources that created by CloudFormation
    $ bundle exec rake s3:delete BUCKET={your_bucket_name}
    $ bundle exec rake cfn:delete

License

MIT