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
{ | |
"AWSTemplateFormatVersion": "2010-09-09", | |
"Description": "Create AMR Cluster", | |
"Parameters": { | |
"ProductParam": { | |
"Description": "The EMR Product tag", | |
"Type": "String", | |
"Default": "aProductParam", | |
"MinLength": "3", | |
"MaxLength": "50", |
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
{ | |
"AWSTemplateFormatVersion": "2010-09-09", | |
"Description": "Create Linux EC2 with postgresql96", | |
"Metadata": { | |
"Comment": "Postgres 9.6 on a r3.8xlarge + 20G EBS in a privateSubnet, and pgbench in publicSubnet" | |
}, | |
"Parameters": { | |
"Ec2KeyNameParam": { | |
"Description": "Name of an existing EC2 KeyPair to enable SSH access to the instance", | |
"Type": "AWS::EC2::KeyPair::KeyName", |
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
import boto3 | |
required_keys = [ "key01", "key02", "key03", "key04" ] | |
ses_source = '[email protected]' | |
ses_destination = ['[email protected]'] | |
def lambda_handler(event, context): | |
if 'detail' in event and 'instance-id' in event['detail']: | |
ec2_instance_id = event['detail']['instance-id'] |
NewerOlder