UNPKG

@csermet/multiprovider

Version:

cloud-graph provider plugin for AWS used to fetch AWS cloud data.

545 lines (544 loc) β€’ 29.2 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = { platform: 'Platform: AWS', requestingAccountData: 'Getting AWS Account Data', requestingAccountDataError: '❌ ERROR: There was an error getting the AWS account data using these credentials ❌ ', foundRoleArn: 'Found AWS Role ARN and external ID - authenticating via STS', foundSecurityViolation: (name, type) => `πŸ’€ Found a security violation for ${type}: ${name} πŸ’€`, startGeneration: 'Generating VSD data for AWS account...', regionNotFound: (name) => `❌ The region ${name} was not found in the list of supported AWS regions ❌`, globalAwsRegion: 'Found Global AWS region, adding global resources', /** * ACM */ fetchedAcmCertificates: (num) => `Fetched ${num} ACM certificates`, /** * IAM */ fetchingIamPasswordPolicy: 'Fetching IAM Password Policy for this AWS account via the AWS SDK...', doneFetchingIamPasswordPolicy: 'βœ… Done fetching IAM Password Policy βœ…', fetchedIamUsers: (num) => `Fetched ${num} IAM users`, lookingForIam: 'Looking for IAM resources to add', addingIam: 'Adding IAM resources', lookingForIamUsers: 'Looking for IAM Users to add', foundUsers: (num) => `Found ${num} Users to add`, lookingForIamRoles: 'Looking for IAM Roles to add', foundRoles: (num) => `Found ${num} Roles to add`, lookingForIamGroups: 'Looking for IAM Groups to add', foundGroups: (num) => `Found ${num} Groups to add`, lookingForIamPolicies: 'Looking for IAM Policies to add', foundPolicies: (num) => `Found ${num} Policies to add`, lookingForIamSamlProviders: 'Looking for IAM Saml Providers to add', foundSamlProviders: (num) => `Found ${num} Saml Providers to add`, lookingForIamOpenIdProviders: 'Looking for IAM OpenId Connect Providers to add', foundOpenIdProviders: (num) => `Found ${num} OpenId Connect Providers to add`, lookingForIamServerCertificates: 'Looking for IAM Server Certificates to add', foundServerCertificates: (num) => `Found ${num} Server Certificates to add`, foundInstanceProfiles: (num) => `Found ${num} Instance Profiles to add`, /** * CloudFormation */ fetchingCloudFormationData: 'Fetching CloudFormation data for this AWS account via the AWS SDK...', doneFetchingCloudFormationData: 'βœ… Done fetching CloudFormation Data βœ…', lookingForCfStacks: 'Looking for Cloudformation Stacks to add to Region...', fetchedCfStacks: (num) => `Fetched ${num} CF Stacks`, addingCfStacks: (num) => `Created and added ${num} CloudFomation stacks to this region`, /** * CloudFront */ fetchingCloudFrontData: 'Fetching CloudFront Distros for this AWS account via the AWS SDK...', fetchedCloudFrontDistros: (num) => `Fetched ${num} CloudFront Distros`, fetchingCloudFrontDistrosConfigAndTags: 'Fetching CloudFront Distros Config Data and Tags...', doneFetchingCloudFrontDistrosConfigAndTags: 'Done fetching CloudFront Distros Config Data and Tags...', /** * Route53 */ fetchedRoute53Zones: (num) => `Fetched ${num} Route53 Hosted Zones`, fetchedRoute53ZonesRecords: (num, zoneId) => `Fetched ${num} Route53 Hosted Zone records for ${zoneId}`, lookingForRoute53: 'Looking for Route53 Hosted Zones to add to account...', addingRoute53: (num) => `Created and added ${num} Route53 Hosted Zones to this account`, doneFetchingRoute53HostedZoneData: 'βœ… Done fetching Route53 Hosted Zones Data βœ…', doneFetchingRoute53RecordsData: 'βœ… Done fetching Route53 Records Data βœ…', /** * CloudWatch */ lookingForCloudwatch: 'Looking for CloudWatch alarms to add to Region...', fetchingCloudwatchData: 'Fetching CloudWatch alarms for this AWS account via the AWS SDK...', doneFetchingCloudwatchData: (num) => `πŸ•’ Done fetching CloudWatch alarms in ${num} πŸ•˜`, addingCloudwatch: (num) => `Created and added ${num} CloudWatch alarms to this region`, foundMoreCloudwatchAlarms: (num) => `Found another ${num} CloudWatch alarms in this region...`, addingCloudwatchMetricsToElement: (num, namespace) => `Found ${num} CloudWatch metric alarms to add for ${namespace}`, gettingCloudwatchAlarms: 'Fetching CloudWatch alarms...', gettingCloudwatchAlarmTags: 'Fetching tags for each CloudWatch alarm...', /** * Kinesis Data Streams */ lookingForKinesisDataStreams: 'Looking for Kinesis Data Streams to add to Region...', addingKinesisDataStreams: (num) => `Created and added ${num} Kinesis Data Streams to this region`, /** * Kinesis Data Firehose */ lookingForKinesisDataFirehose: 'Looking for Kinesis Data Firehose to add to Region...', addingKinesisDataFirehose: (num) => `Created and added ${num} Kinesis Data Firehose to this region`, /** * Iot Thing */ lookingForIotThing: 'Looking for IoT Things to add to Region...', addingIotThing: (num) => `Created and added ${num} IoT Things to this region`, foundMoreIoTThings: (num) => `Found another ${num} IoT things in this region...`, gettingIoTThings: 'Fetching IoT things...', /** * Api Gateway */ lookingForApiGateway: 'Looking for Api Gateways to add to Region...', addingApiGateway: (num) => `Created and added ${num} Api Gateways to this region`, fetchedApiGatewayRestApis: (num) => `Fetched ${num} Api Gateway Rest Apis`, fetchedApiGatewayResources: (num) => `Fetched ${num} Api Gateway Resources`, fetchedApiGatewayStages: (num) => `Fetched ${num} Api Gateway Stages`, fetchedApiGwDomainNames: (num) => `Fetched ${num} API Gateway Domain Names`, fetchingApiGatewayData: 'Fetching API Gateway data for this AWS account via the AWS SDK...', doneFetchingApiGatewayData: 'βœ… Done fetching API Gateway Data βœ…', gettingApiGatewayTags: 'Fetching tags for each Api Gateway Rest Api...', gettingApiGatewayStageTags: 'Fetching tags for each Api Gateway Stage...', /** * Vpc */ fetchingVpcData: 'Fetching VPC data for this AWS account via the AWS SDK...', doneFetchingVpcData: 'βœ… Done fetching VPC Data βœ…', fetchedVpcs: (num) => `Fetched ${num} Vpcs`, lookingForVpc: 'Looking for VPC data to add', foundVpcs: (num) => `Found ${num} VPCs to add to this region's data`, beginVpc: 'βœ… Begin Vpc Formatting βœ…', foundAdditionalVpcData: (found) => found ? 'Found supplemental VPC data to add' : '❌ ERROR - Missing supplemental VPC data ❌', foundNacls: (num) => `Found ${num} NACLs to add to VPC`, fetchedNatGateways: (num) => `Fetched ${num} NAT Gateways`, foundSecurityGroups: (num) => `Found ${num} Security Groups to add to VPC`, fetchedSecurityGroups: (num) => `Fetched ${num} Security Groups`, foundVpcLambdas: (num) => `Found ${num} Lambdas to add to VPC`, gatheringRouteTableAssociations: 'Gathering route table associations', gatheringSubnets: 'Gathering subnets to add to VPC', fetchedSubnets: (num) => `Fetched ${num} Subnets`, creatingVpc: 'Creating VPC Element', addingVpc: 'Adding VPC Element to the region', lookingforSubnets: 'Looking for Subnets to add to VPC', foundSubnets: (num) => `Found ${num} Subnets to add to this Vpc`, foundAdditionalSubnetData: (found) => found ? 'Found supplemental Subnet data to add' : '❌ ERROR - Missing supplemental Subnet data ❌', creatingSubnet: 'Creating Subnet', addingSubnet: 'Adding Subnet -> NACL -> AZ', addingRouteTablesToSubnet: (num, name) => `Adding ${num} Route Tables to subnet ${name}`, /** * Lambda */ lookingForVpcLambdas: 'Looking for Lambdas with VPC networking to add to the VPC', lookingForLambda: 'Looking for non-vpc Lambdas to add to region', fetchingLambdaData: 'Fetching Lambdas for this AWS account via the AWS SDK...', doneFetchingLambdaData: (num) => `πŸ•’ Done fetching Lambdas in ${num} πŸ•˜`, lambdasCreated: (num) => `Found and created ${num} Lambdas for this region`, addingLambdas: 'Adding lambdas to region', foundMoreLambdas: (num) => `Found another ${num} Lambdas in this region...`, fetchedLambdas: (num) => `Fetched ${num} Lambdas`, gettingLambdaTags: 'Fetching tags for each Lambda...', /** * ALBs */ fetchedAlbs: (num) => `Fetched ${num} Application Load Balancers`, lookingForAlbs: 'Looking ALBs to add to VPC...', lookingForAlb: 'Looking for Albs...', doneFetchingAlbData: 'βœ… Done fetching ALB Data βœ…', albsCreated: (num) => `Found and created ${num} ALBs`, fetchedAlbTags: (num, albArn) => `Fetched ${num} Tags for ${albArn}`, fetchedAlbAttributes: (num, albArn) => `Fetched ${num} Attributes for ${albArn}`, fetchedAlbListeners: (num, albArn) => `Fetched ${num} ALB Listeners for ${albArn}`, fetchedAlbTargetGroups: (num, albArn) => `Fetched ${num} ALB Target Groups for ${albArn}`, fetchedAlbTargetIds: (num, albArn) => `Fetched ${num} ALB Target Ids for ${albArn}`, /** * IGW */ fetchedIgws: (num) => `Fetched ${num} IGWs`, foundIgw: (num) => `Found ${num} Internet Gateway to add to VPC`, fetchingIgw: 'Fetching IGW data for this AWS account via the AWS SDK...', doneFetchingIgwData: (num) => `πŸ•’ Done fetching IGW Data in ${num} πŸ•˜`, /** * EIPs (not attached to instances) */ lookingForEips: 'Looking EIPs that are not attached to instances', fetchedEips: (num) => `Fetched ${num} EIPs`, eipsCreated: (num) => `Found and created ${num} EIPs`, fetchingEip: 'Fetching EIP data for this AWS account via the AWS SDK...', doneFetchingEipData: 'βœ… Done fetching EIP Data βœ…', /** * Organization */ orgFound: 'βœ… Org data found, adding data orgβœ…', noOrgFound: '❎ No org found or multiple orgs found which we currently do not support. Adding data to bare bones org ❎', /** * ASG */ fetchingAsgData: 'Fetching ASG data for this AWS account via the AWS SDK...', doneFetchingAsgData: 'βœ… Done fetching ASG Data βœ…', fetchedAsgs: (num) => `Fetched ${num} AutoScaling Groups`, addingAsgs: (num) => `Found ${num} AutoScaling Groups, adding them to the VPC`, lookingForAsgs: 'Looking for AutoScaling Groups to add...', /** * AppSync */ fetchedAppSync: (num) => `Fetched ${num} App Syncs`, doneFetchedAppSync: 'βœ… Done fetching AppSync Data βœ…', /** * EBS */ fetchingEbsData: 'Fetching EBS data for this AWS account via the AWS SDK...', doneFetchingEbsData: 'βœ… Done fetching EBS Data βœ…', fetchedEbsVolumes: (num) => `Fetched ${num} EBS Volumes`, lookingForEbs: 'Looking for EBS volumes for EC2 instances...', /** * EBS Snapshot */ fetchingEbsSnapshotData: 'Fetching EBS Snapshot data for this AWS account via the AWS SDK...', doneFetchingEbsSnapshotData: 'βœ… Done fetching EBS Snapshot Data βœ…', fetchedEbsSnapshots: (num) => `Fetched ${num} EBS Snapshots`, lookingForEbsSnapshot: 'Looking for EBS Snapshots...', /** * EC2 */ lookingforEc2: 'Looking for EC2 instances to add...', fetchedEc2Instances: (num) => `Fetched ${num} EC2 Instances`, fetchedEc2InstanceTags: (num) => `Fetched ${num} Tags for EC2 Instances`, creatingEc2Instance: (num) => `Creating EC2 Instance #${num}`, addingEc2Instances: (num) => `Found ${num} EC2 Instances, adding them to the Subnet`, fetchedNetworkInterfaces: (num) => `Fetched ${num} Network Interfaces`, lookingForNetworkInterfaces: 'Gathering Network Interfaces to add...', foundKeyPair: (id) => `Found Key Pair ${id} for instance`, doneFetchingEc2Data: 'βœ… Done fetching EC2 Instance Data βœ…', /** * RDS */ fetchingRdsData: 'Fetching RDS data for this AWS account via the AWS SDK...', doneFetchingRdsData: 'βœ… Done fetching RDS Data βœ…', lookingforRdsInstances: 'Looking for RDS Instances...', lookingforRdsClusters: 'Looking for RDS Clusters...', creatingRdsInstance: (num) => `Creating RDS Instance #${num}`, fetchedRdsClusters: (num) => `Fetched ${num} RDS Clusters`, fetchedRdsInstances: (num) => `Fetched ${num} RDS DB Instances`, noClusterFound: '❎ DB Instance is not part of a cluster ❎ ', foundCluster: 'Found the cluster the instance belongs to', addingRdsInstances: (num) => `Found ${num} RDS Instances, adding them to the Subnet`, addingRdsClusters: (num) => `Found ${num} RDS Clusters, adding them to the Vpc`, noClusterFoundForDbInstance: ({ name }) => `No cluster found for db_instance: ${name}`, /** * EMR */ fetchingEmrData: 'Fetching EMR cluster data for this AWS account via the AWS SDK...', lookingForEmr: 'Looking for EMR Clusters to add...', addingEmr: (num) => `Found ${num} EMR Clusters, adding them to the Region`, doneFetchingEmrData: 'βœ… Done fetching EMR Data βœ…', fetchedEmrClusters: (num) => `Fetched ${num} EMR Clusters`, fetchedEmrClusterInstances: (num) => `Fetched ${num} EMR Clusters Instances`, foundAnotherFiftyClusters: (region) => `Found another 50 EMR clusters for the ${region} region...`, foundAnotherTwoThousandInstances: (cluster) => `Found another 2000 EMR instances for the ${cluster} cluster...`, foundAnotherFiftySteps: (cluster) => `Found another 50 EMR steps for the ${cluster} cluster...`, fetchedEmrClusterSteps: (num) => `Fetched ${num} EMR Cluster Steps`, addingEmrEc2Connection: (clusterName, ec2InstanceName) => `Found ec2 instance ${ec2InstanceName} to add to emr cluster ${clusterName}`, noEmrClusterParentFoundForEc2Instance: ({ name }) => `❌ WARNING: No EMR Cluster found for EC2 Instance ${name} ❌ `, /** * EFS */ fetchingEfsData: 'Fetching EFS data for this AWS account via the AWS SDK...', lookingForEfs: 'Looking for EFS data to add...', lookingForEfsMountTargets: 'Looking for EFS Mount Targets to add to subnet...', addingEfs: (num) => `Found ${num} EFS, adding them to the VPC`, addingEfsMountTargets: (num) => `Found ${num} EFS Mount Targets, adding them to the subnet`, doneFetchingEfsData: 'βœ… Done fetching EFS Data βœ…', fetchedEfs: (num) => `Fetched ${num} EFS`, fetchedEfsMountTargets: (num) => `Fetched ${num} EFS Mount Targets`, fetchedEfsMountTargetSecurityGroups: (num) => `Fetched ${num} EFS Mount Target Security Groups`, noFileSystemFoundForEfsMountPoint: ({ name }) => `❌ WARNING: No EFS found for mount point ${name} ❌ `, /** * S3 */ lookingForS3: 'Looking for S3 Buckets to add', lookingForS3SecurityData: 'Looking for S3 buckets with security violations...', foundAnotherThousand: 'Found another thousand objects in the s3 bucket...', fetchingS3Data: 'Fetching S3 data for this AWS account via the AWS SDK...', doneFetchingS3Data: (num) => `πŸ•’ Done fetching S3 Data in ${num} πŸ•˜`, fetchedS3Buckets: (num) => `Fetched ${num} S3 Buckets`, creatingS3Bucket: (num) => `Creating S3 Bucket #${num}`, addingS3Buckets: (num) => `Found ${num} S3 Buckets, adding them to the Region`, gettingBucketBasicInfo: (name) => `Fetching basic information for ${name} bucket...`, gettingBucketAdditionalInfo: (name) => `Fetching additional information for ${name} bucket...`, gettingBucketAdditionalInfoError: (name) => `There was an error fetching additional information for ${name} bucket...`, /** * DynamoDb */ lookingForDynamoDb: 'Looking for DynamoDb Tables to add...', fetchingDynamoDbData: 'Fetching DynamoDB data for this AWS account via the AWS SDK...', doneFetchingDynamoDbData: (num) => `πŸ•’ Done fetching DynamoDb Data in ${num} πŸ•˜`, fetchedDynamoDbTableNames: (num) => `Fetched ${num} DynamoDB table names`, addingDynamoDbTables: (num) => `Found ${num} Dynamo DB tables, adding them to the Region`, gettingTableDetails: 'Fetching details for each table...', gettingTableTags: 'Fetching tags for each table...', gettingTableTtlInfo: 'Fetching TTL description for each table...', gettingTableBackupInfo: 'Fetching Continuous Backup description for each table...', /** * SNS */ fetchedSNSTopics: (num) => `Fetched ${num} SNS Topics`, gettingSNSTopicAttributes: `Fetching attributes for each topic...`, gettingSNSTopicTags: `Fetching tags for each topic...`, gettingSNSTopicSubscriptions: `Fetching subscriptions for each topic...`, lookingForSns: 'Looking for SNS topics and subscriptions to add...', addingSns: (num) => `Found ${num} SNS topics, adding them to the Region`, /** * Secrets Manager */ fetchingSecretsManager: 'Fetching Secrets Manager data for this AWS account via the AWS SDK...', doneFetchingSecretsManager: 'βœ… Done fetching Secrets Manager data βœ…', lookingForSecretsManager: 'Looking for Secrets Manager Secrets to add...', addingSecretsManager: (num) => `Found ${num} Secrets Manager Secrets, adding them to the Region`, fetchedSecretsManager: (num) => `Fetched ${num} Secrets Manager Secrets`, /** * SQS */ lookingForSqs: 'Looking for SQS queues to add...', addingSqs: (num) => `Found ${num} SQS Queues, adding them to the Region`, /** * SES */ fetchingSesData: 'Fetching SES data for this AWS account via the AWS SDK...', doneFetchingSesData: 'βœ… Done fetching SES Data βœ…', fetchedSesIdentities: (num) => `Fetched ${num} SES Identities`, lookingForSes: 'Looking for SES to add...', addingSes: (num) => `Found ${num} SES, adding them to the Region`, /** * Kinesis Data Firehose */ fetchedKinesisFirehose: (num) => `Fetched ${num} Kinesis Firehose`, /** * Kinesis Data Stream */ fetchedKinesisStream: (num) => `Fetched ${num} Kinesis streams`, /** * KMS */ lookingForKms: 'Looking for KMS Keys to add...', addingKms: (num) => `Found ${num} KMS Keys, adding them to the Region`, fetchedKmsKeys: (num) => `Fetched ${num} KMS Keys`, doneFetchingKmsData: 'βœ… Done fetching Kms Data βœ…', hasMoreKmsTags: 'KMS Key has more than 50 tags, some where not fetched...', gettingKeyDetails: 'Fetching details for each key...', gettingRotationStatus: 'Checking rotation status for each key...', gettingPolicies: 'Fetching default Policy for each key...', gettingTags: 'Fetching Tags for each key...', gettingAliases: 'Fetching Aliases for each key...', /** * EKS */ lookingForEks: 'Looking for EKS Clusters to add...', addingEks: (num) => `Found ${num} EKS Clusters, adding them to the VPC`, canNotFindClusterForAsg: 'ERROR: Can not find ECS/EKS cluster for ASG - it should have been added already', foundMoreEKSClusters: (num) => `Found another ${num} EKS clusters in this region...`, /** * Elastic Beanstalk */ fetchedElasticBeanstalkApps: (num) => `Fetched ${num} Elastic Beanstalk Applications`, fetchedElasticBeanstalkEnvs: (num) => `Fetched ${num} Elastic Beanstalk Environments`, /** * ElastiCache */ lookingForElastiCache: 'Looking for ElastiCache Clusters to add...', addingElastiCache: (num) => `Found ${num} ElastiCache Clusters, adding them to the VPC`, missingReplicationGroup: (is) => `Missing replication group for ${is} ElastiCache Cluster! Not adding ElastiCache Data`, fetchedElasticacheClusters: (num) => `Fetched ${num} Elasticache clusters...`, /** * ECR */ fetchedECRRepos: (num) => `Found ${num} ECR repos...`, foundMoreECRRepos: (num) => `Found another ${num} ECR repos in this region...`, gettingECRRepos: 'Fetching ECR repos...', gettingECRRepoTags: 'Fetching tags for each ECR repo...', /** * Transit Gateway */ lookingForTransitGateway: 'Looking for Transit Gateways to add...', addingTransitGateways: (num) => `Found ${num} Transit Gateways, adding them to the VPC`, addingTransitGatewayToVpc: ({ name }) => `Adding Transit Gateway ${name} to the VPC`, addingTransitGatewayToRegion: ({ name }) => `Transit Gateway not attached to a VPC, adding Transit Gateway ${name} to the region level`, fetchedTransitGateways: (num) => `Found ${num} Transit Gateways`, /** * Transit Gateway Attachment */ fetchedTransitGatewayAttachments: (num) => `Found ${num} Transit Gateway Attachments`, /** * Transit Gateway Route Tables */ fetchedTransitGatewayRouteTables: (num) => `Found ${num} Transit Gateway Route Tables`, /** * VPN Gateway */ lookingForVpnGateway: 'Looking for Vpn Gateways to add...', addingVpnGatewayToVpc: (num) => `Adding ${num} Vpn Gateways to the VPC`, fetchedVpnGateways: (num) => `Fetched ${num} Vpn Gateways`, /** * Customer Gateway */ lookingForCustomerGateways: 'Looking for Customer Gateways to add...', addingCustomerGatewaysToVpc: ({ name }) => `Adding the ${name} Customer Gateways to the VPC`, addingCustomerGatewayToRegion: ({ name }) => `Customer Gateway not attached to a VPC, adding Customer Gateway ${name} to the region level`, /** * Redshift */ lookingForRedshift: 'Looking for Redshift Clusters to add...', addingRedshift: (num) => `Found ${num} Redshift Clusters, adding them to the Region`, doneFetchingRedshiftData: 'βœ… Done fetching Redshift Cluster Data βœ…', fetchedRedshiftClusters: (num) => `Found ${num} Redshift Clusters`, /** * ECS */ lookingForEcs: 'Looking for Ecs Clusters to add...', addingEcs: (num) => `Found ${num} Ecs Clusters, adding them to the Region`, doneFetchingEcsData: 'βœ… Done fetching Ecs Cluster Data βœ…', fetchedEcsClusters: (num) => `Found ${num} Ecs Clusters`, fetchedEcsServices: (num) => `Found ${num} Ecs Services`, fetchedEcsTaskDefinitions: (num) => `Found ${num} Ecs Task Definitions`, fetchedEcsTasks: (num) => `Found ${num} Ecs Tasks`, fetchedEcsContainers: (num) => `Found ${num} Ecs Containers`, ecsVpcNotFound: 'ERROR: Vpc for ECS Cluster was not found', addingEcsClusters: (num) => `Found ${num} ECS Clusters, adding them to the the VPC`, addingEcsTasksToSubnet: (num, subnetId) => `Found ${num} ECS Tasks, adding them to the the ${subnetId} Subnet`, /** * Cognito */ lookingForCognito: 'Looking for Cognito to add...', addingIdentityPools: (num) => `Found ${num} Cognito Identity Pools, adding them to the Region`, addingUserPools: (num) => `Found ${num} Cognito User Pools, adding them to the Region`, doneFetchingCognitoData: 'βœ… Done fetching Cognito Data βœ…', fetchedCognitoUserPools: (num) => `Found ${num} Cognito User Pools`, fetchedCognitoIdentityPools: (num) => `Found ${num} Cognito Identity Pools`, fetchedCognitoUserPool: (id) => `Fetched Cognito User Pool data for ${id}`, fetchedCognitoIdentityPool: (id) => `Fetched Cognito Identity Pool data for ${id}`, lookingForIdentityPools: 'Looking for Cognito Identity Pools to add to region', lookingForUserPools: 'Looking for Cognito User Pools to add to region', /** * Client Vpn Endpoints */ fetchingClientVpnEndpointsData: 'Fetching Client Vpn Endpoints data for this AWS account via the AWS SDK...', doneFetchingClientVpnEndpointsData: 'βœ… Done fetching Client Vpn Endpoints Data βœ…', fetchedClientVpnEndpoints: (num) => `Fetched ${num} Client Vpn Endpoints`, addingClientVpnEndpoints: (num) => `Found ${num} Client Vpc Endpoints adding them to the vpc`, /** * Vpn Connection */ fetchingVpnConnectionsData: 'Fetching Vpn Connections data for this AWS account via the AWS SDK...', doneFetchingVpnConnectionsData: 'βœ… Done fetching Vpn Connections Data βœ…', fetchedVpnConnections: (num) => `Fetched ${num} Vpn Connections`, addingVpnConnections: (num) => `Found ${num} Client Vpn Endpoints adding them to the region`, lookingForVpnConnections: 'Looking for VPN Connections to add...', /** * Classic ELB */ fetchingElbData: 'Fetching Classic ELB data for this AWS account via the AWS SDK...', doneFetchingElbData: 'βœ… Done fetching Classic ELB Data βœ…', lookingForElbs: 'Looking for Classic Elbs to add...', addingElbs: (num) => `Found ${num} Classic Elbs, adding them to the vpc`, fetchedElbs: (num) => `Found ${num} Classic Elbs`, /** * 2D UI Creation */ beginHostingFromVpc: 'Looking for resources to hoist from VPCs and Subnets to the top level...', foundItemsToHoist: (num, type) => `Found ${num} items to hoist up to the top level for ${type}`, removingOldChildren: 'Removing old children from this subnet...', combiningAndAddingNacls: (name) => `Deduping NACLS and adding them and their children directly to VPC: ${name}`, /** * Kubernetes */ fetchingKubernetesData: 'Kubernetes Data for AWS requested - fetching all clusters... This will take a while...', doneFetchingKubernetesData: 'βœ… Done fetching Kubernetes Data βœ…', /** * Cloud9 */ lookingForCloud9: 'Looking for Cloud9 to add to Region...', addingCloud9: (num) => `Created and added ${num} Cloud9 to this region`, foundMoreCloud9Environments: (num) => `Found another ${num} Cloud9 environments in this region...`, gettingCloud9Environments: 'Fetching Cloud9 environments...', gettingCloud9EnvironmentTags: 'Fetching tags for each Cloud9 environment...', /** * VPC */ fetchingVpcDnsSupportData: 'Fetching Enable DNS Support config for VPCs...', fetchingVpcDnsHostnamesData: 'Fetching Enable DNS Hostnames config for VPCs...', /** * Route Tables */ fetchedRouteTables: (num) => `Fetched ${num} Route Tables`, foundRouteTables: (num) => `Found ${num} Route Tables to add to VPC`, fetchingRouteTable: 'Fetching Route Table data for this AWS account via the AWS SDK...', doneFetchingRouteTableData: (num) => `πŸ•’ Done fetching Route Table Data in ${num} πŸ•˜`, addingMainRouteTableToVpc: (vpcId) => `Adding Main Toute Table to VPC ${vpcId}`, /** * Billing */ fetchingAggregateFinOpsData: 'Fetching aggregate FinOps data for this AWS account via the AWS SDK...', unableToFindFinOpsAggregateData: '❌ Unable to getCostAndUsage data for this AWS account, ResultsByTime was missing. ❌', unableToFindFinOpsIndividualData: '❌ Unable to getCostAndUsageWithResources data for this AWS account, ResultsByTime was missing. ❌', queryingAggregateFinOpsDataForRegion: (region, type) => `Querying aggregate FinOps data for the ${region} region using the ${type} method...`, queryingIndividualFinOpsDataForRegion: (region) => `Querying individual FinOps data for the ${region} region...`, doneFetchingAggregateFinOpsData: (num) => `πŸ•’ Done fetching aggregate FinOps data in ${num} πŸ•˜`, unableToFindFinOpsServiceData: '❌ Unable to listAvailabeServices data for this AWS account, DimensionValues was missing. ❌', /** * NACL */ fetchedNacls: (num) => `Fetched ${num} NACLs`, /** * Customer Gateway */ fetchedCustomerGateways: (num) => `Fetched ${num} Customer Gateways`, /** * CloudWatch Logs */ lookingForCloudwatchLogGroups: 'Looking for CloudWatch Log groups to add to Region...', fetchingCloudwatchLogGroupsData: 'Fetching CloudWatch Log groups for this AWS account via the AWS SDK...', doneFetchingCloudwatchLogGroupsData: (num) => `πŸ•’ Done fetching CloudWatch Log groups in ${num} πŸ•˜`, foundMoreCloudwatchLogGroups: (num) => `Found another ${num} CloudWatch Log groups in this region...`, gettingCloudwatchLogGroups: 'Fetching CloudWatch Log groups...', foundMoreCloudwatchMetricFilters: (num) => `Found another ${num} CloudWatch Metric filters in this region...`, /** * Configuration Recorders */ fetchedConfigurationRecorders: (num) => `Fetched ${num} Configuration Recorders`, /** * Configuration Recorder Status */ fetchedConfigurationRecorderStatus: (num) => `Fetched ${num} Configuration Recorder Status`, /** * Vpc Endpoints */ fetchedVpcEndpoints: (num) => `Fetched ${num} Vpc Endpoints`, /** * Access Analyzers */ fetchedaccessAnalyzers: (num) => `Found ${num} Access Analyzers`, /** * Managed Prefix Lists */ fetchedManagedPrefixLists: (num) => `Found ${num} Managed Prefix Lists`, fetchedManagedPrefixListEntries: (num) => `Found ${num} Managed Prefix List Entries`, /** * Vpc Peering Connections */ fetchedVpcPeeringConnections: (num) => `Found ${num} Vpc Peering Connections`, /** * Security Hub */ securityHubNotFound: (region) => `Security Hub not found/disabled for region: ${region}`, fetchedSecurityHub: (region) => `Security Hub found/enabled for region: ${region}`, fetchingSecurityHub: 'Fetching Security Hub data for this AWS account via the AWS SDK...', /** * Msk */ fetchedMskClusters: (num) => `Fetched ${num} Msk clusters`, };