Skip to content

Instantly share code, notes, and snippets.

@pbzona
Created April 30, 2018 21:49
Show Gist options
  • Save pbzona/4dce8f053104e6730437e591edf57a12 to your computer and use it in GitHub Desktop.
Save pbzona/4dce8f053104e6730437e591edf57a12 to your computer and use it in GitHub Desktop.
Serverless Weather pt 1
'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