Skip to content

Instantly share code, notes, and snippets.

Avatar

Aniket Thakur aniket91

View GitHub Profile
@aniket91
aniket91 / email_ses.js
Created Aug 16, 2018
Node.js code snippet to send email using AWS SES service
View email_ses.js
const aws = require('aws-sdk');
aws.config.loadFromPath('./config.json');
const ses = new aws.SES();
/**
* author: athakur
* aws ses create-template --cli-input-json fileb://test_template.json --region us-east-1 --profile osfg
* aws ses update-template --cli-input-json fileb://test_template.json --region us-east-1 --profile osfg
* @param {*} callback
*/
@aniket91
aniket91 / update-lambda.sh
Last active Nov 26, 2019
Shell script to update lambda code and environment variables to multiple regions and environments using AWS CLI
View update-lambda.sh
#!/bin/bash
#----------------------------------------------------
# Author : athakur
# Version : 1.0
# Date : 10/02/2018
# Description : Deployment script to update lambda code and env variables
# Sample usage :
# Local : ./update-lambda.sh test aws-admin fileb://../lambda.zip
# Dev : ./update-lambda.sh dev aws-admin fileb://../lambda.zip
# QA : ./update-lambda.sh qa aws-admin fileb://../lambda.zip
You can’t perform that action at this time.