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
# Create EC2 instance, EBS alarms for all resources in a region | |
import os | |
import boto3 | |
# SNS Topic Definition for EC2, EBS | |
instance_ids = os.environ.get('INSTANCE_ID').split('#') | |
ec2_sns = os.environ.get('SNS_TOPIC_ARN') # arn:aws:sns:ca-central-1:476697408772:cloudwatch-monitoring | |
ebs_sns = os.environ.get('SNS_TOPIC_ARN') # arn:aws:sns:ca-central-1:476697408772:cloudwatch-monitoring | |
# AWS Account and Region Definition for Reboot Actions |