Created
April 30, 2018 21:49
-
-
Save pbzona/4dce8f053104e6730437e591edf57a12 to your computer and use it in GitHub Desktop.
Serverless Weather pt 1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
const AWS = require('aws-sdk'); | |
const SNS = new AWS.SNS(); | |
// In addition to the AWS SDK, we'll use axios to help make our requests | |
const axios = require('axios'); | |
// Make sure to define these environment variables in the template.yaml file | |
const API_KEY = process.env.API_KEY; | |
const COORDS = process.env.COORDS; | |
const TOPIC = process.env.TOPIC; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment