Skip to content

Instantly share code, notes, and snippets.

View krcummings1's full-sized avatar

Kaylee Cummings krcummings1

View GitHub Profile
@gdbate
gdbate / vue-customizing-amplify-authentication-vuex-module.js
Last active September 27, 2021 19:35
Vue: Customizing Amplify Authentication - Vuex Module
// Dependencies ===============
import {Auth} from 'aws-amplify'
const store = {namespaced: true}
// State ======================
store.state = {
authorized: false,
@jeremypruitt
jeremypruitt / sns-publish
Last active August 19, 2022 18:09
AWS Lambda function to publish to SNS topic
console.log('Loading function');
var AWS = require('aws-sdk');
AWS.config.region = 'us-west-2';
exports.handler = function(event, context) {
console.log("\n\nLoading handler\n\n");
var sns = new AWS.SNS();
sns.publish({