This file contains 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 { IAspect } from "aws-cdk-lib"; | |
import { NodejsFunction } from "aws-cdk-lib/aws-lambda-nodejs"; | |
import { MonitoringFacade } from "cdk-monitoring-constructs"; | |
import { IConstruct } from "constructs"; | |
export class LambdaAlarms implements IAspect { | |
monitoringFacade: MonitoringFacade; | |
constructor(monitoringFacade: MonitoringFacade) { |
This file contains 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
route53domains:RegisterDomain | |
route53domains:RenewDomain | |
route53domains:TransferDomain | |
ec2:ModifyReservedInstances | |
ec2:PurchaseHostReservation | |
ec2:PurchaseReservedInstancesOffering | |
ec2:PurchaseScheduledInstances | |
rds:PurchaseReservedDBInstancesOffering | |
dynamodb:PurchaseReservedCapacityOfferings | |
s3:PutObjectRetention |
This file contains 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
#!/bin/bash | |
instance_type_filter=g5.8xlarge | |
echo "Getting list of Availability Zones" | |
all_regions=$(aws ec2 describe-regions --output text --query 'Regions[*].[RegionName]' | sort) | |
all_az=() | |
while read -r region; do | |
echo "Getting AZs per region $region" | |
az_per_region=$(aws ec2 describe-availability-zones --region "$region" --query 'AvailabilityZones[*].[ZoneName]' --output text | sort) |