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
| /** Example used to support creating custom domains with https://authress.io */ | |
| const stepFunctionResource = { | |
| "Type": "AWS::StepFunctions::StateMachine", | |
| "Properties": { | |
| "StateMachineName": { | |
| "Fn::Sub": "${AWS::StackName}-CustomDomain" | |
| }, | |
| "LoggingConfiguration": { | |
| "Destinations": [{ | |
| "CloudWatchLogsLogGroup": { |
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
| // This is also a config rule: https://eu-west-2.console.aws.amazon.com/lambda/home?region=eu-west-2#/create/app?applicationId=arn:aws:serverlessrepo:eu-west-1:922723803004:applications/Elastic-IP-Config-Rule | |
| const { Route53, EC2, config } = require('aws-sdk'); | |
| config.region = 'eu-west-1'; | |
| async function findDanglingElasticIpAddresses(dryRun = true) { | |
| const route53 = new Route53(); | |
| let hostedZoneIds; | |
| try { | |
| console.log('Looking up hosted zones:'); |