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 sys | |
| import boto3 | |
| def rename_alarm(alarm_name, new_alarm_name): | |
| client = boto3.client('cloudwatch') | |
| alarm = client.describe_alarms(AlarmNames=[alarm_name]) | |
| if not alarm: | |
| raise Exception("Alarm '%s' not found" % alarm_name) | |
| alarm = alarm['MetricAlarms'][0] |
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 | |
| Parameters: | |
| RootDomainName: | |
| Type: String | |
| IncludeLambdaEdge: | |
| Type: String | |
| AllowedValues: ['true', 'false'] | |
| Conditions: | |
| IncludeLambdaEdge: | |
| !Equals ['true', !Ref IncludeLambdaEdge] |
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
| Elastic Load Balancer, CloudFront and Let's Encrypt |