Skip to content

Commit 928b1bd

Browse files
authored
Merge pull request #71 from cloudgraphdev/feature/CG-1199
Feature/cg 1199
2 parents 90e43c3 + 021bcf4 commit 928b1bd

22 files changed

Lines changed: 476 additions & 7 deletions

File tree

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -138,30 +138,31 @@ CloudGraph AWS Provider will ask you what regions you would like to crawl and wi
138138
| managedAirflow | cloudwatchLog, iamRole, kms, securityGroups, subnet, s3 |
139139
| nacl | vpc |
140140
| natGateway | networkInterface, subnet, vpc |
141-
| networkInterface | ec2, eip, efsMountTarget, natGateway, sageMakerNotebookInstance, subnet, vpc, flowLog, securityGroup |
141+
| networkInterface | ec2, eip, efsMountTarget, natGateway, sageMakerNotebookInstance, subnet, vpc, vpcEndpoint, flowLog, securityGroup |
142142
| organization |
143143
| rdsCluster | appSync, rdsClusterSnapshot, rdsDbInstance, route53HostedZone, securityGroup, subnet, iamRole, kms |
144144
| rdsClusterSnapshot | kms, rdsCluster, vpc |
145145
| rdsDbInstance | kms, iamRole, rdsCluster, securityGroup, vpc, subnet, cloudwatchLog |
146146
| redshiftCluster | kms, vpc |
147147
| route53Record | alb, apiGatewayRestApi, elb, route53HostedZone |
148148
| route53HostedZone | rdsCluster, route53Record, vpc |
149-
| routeTable | subnet, transitGateway, transitGatewayAttachment,vpc |
149+
| routeTable | subnet, transitGateway, transitGatewayAttachment,vpc, vpcEndpoint |
150150
| sageMakerExperiment | |
151151
| sageMakerNotebookInstance | iamRole, kms, networkInterface, subnet, securityGroup |
152152
| sageMakerProject | |
153153
| s3 | cloudfront, cloudtrail, ecsCluster, iamRole, kinesisFirehose, lambda, managedAirflow, sns, sqs |
154154
| secretsManager | kms, lambda |
155-
| securityGroup | alb, asg, clientVpnEndpoint, codebuild, dmsReplicationInstance, ecsService, lambda, ec2, elasticSearchDomain, elb, rdsCluster, rdsDbInstance, eksCluster, elastiCacheCluster, managedAirflow, sageMakerNotebookInstance, networkInterface |
155+
| securityGroup | alb, asg, clientVpnEndpoint, codebuild, dmsReplicationInstance, ecsService, lambda, ec2, elasticSearchDomain, elb, rdsCluster, rdsDbInstance, eksCluster, elastiCacheCluster, managedAirflow, sageMakerNotebookInstance, networkInterface, vpcEndpoint |
156156
| ses | |
157157
| sns | kms, cloudtrail, cloudwatch, s3 |
158158
| sqs | elasticBeanstalkEnv, s3 |
159-
| subnet | alb, asg, codebuild, dmsReplicationInstance, ec2, ecsService, efsMountTarget, elastiCacheCluster, elasticSearchDomain, elb, lambda, managedAirflow, natGateway, networkInterface, rdsCluster, sageMakerNotebookInstance, routeTable, vpc, eksCluster, emrCluster, flowLog |
159+
| subnet | alb, asg, codebuild, dmsReplicationInstance, ec2, ecsService, efsMountTarget, elastiCacheCluster, elasticSearchDomain, elb, lambda, managedAirflow, natGateway, networkInterface, rdsCluster, sageMakerNotebookInstance, routeTable, vpc, vpcEndpoint, eksCluster, emrCluster, flowLog |
160160
| systemsManagerInstance | ec2, iamRole |
161161
| systemsManagerDocument | |
162162
| transitGateway | routeTable, transitGatewayAttachment, vpnConnection |
163163
| transitGatewayAttachment | routeTable, transitGateway, vpc, vpnConnection |
164-
| vpc | alb, codebuild, dmsReplicationInstance, ec2, eip, elb, ecsService, efsMountTarget, eksCluster igw, elastiCacheCluster, elasticSearchDomain, lambda, nacl, natGateway, networkInterface, rdsClusterSnapshot, rdsDbInstance, redshiftCluster, route53HostedZone, routeTable, subnet, flowLog, vpnGateway, transitGatewayAttachment |
164+
| vpc | alb, codebuild, dmsReplicationInstance, ec2, eip, elb, ecsService, efsMountTarget, eksCluster igw, elastiCacheCluster, elasticSearchDomain, lambda, nacl, natGateway, networkInterface, rdsClusterSnapshot, rdsDbInstance, redshiftCluster, route53HostedZone, routeTable, subnet, flowLog, vpnGateway, transitGatewayAttachment, vpcEndpoint |
165+
| vpcEndpoint | networkInterface, routeTable, securityGroup, subnet, vpc |
165166
| vpnConnection | customerGateway, transitGateway, transitGatewayAttachment, vpnGateway |
166167
| vpnGateway | vpc, vpnConnection |
167168
| wafV2WebAcl | appSync, apiGatewayStage, alb |

src/enums/schemasMap.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ export default {
7979
[services.sg]: 'awsSecurityGroup',
8080
[services.subnet]: 'awsSubnet',
8181
[services.vpc]: 'awsVpc',
82+
[services.vpcEndpoint]: 'awsVpcEndpoint',
8283
[services.vpnGateway]: 'awsVpnGateway',
8384
[services.sqs]: 'awsSqs',
8485
[services.rdsCluster]: 'awsRdsCluster',

src/enums/serviceAliases.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,5 +70,6 @@ export default {
7070
[services.systemsManagerDocument]: 'systemsManagerDocuments',
7171
[services.systemsManagerInstance]: 'systemsManagerInstances',
7272
[services.transitGatewayAttachment]: 'transitGatewayAttachments',
73+
[services.vpcEndpoint]: 'vpcEndpoints',
7374
[services.vpnConnection]: 'vpnConnections',
7475
}

src/enums/serviceMap.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ import SageMakerNotebookInstance from '../services/sageMakerNotebookInstance'
9696
import SystemsManagerInstance from '../services/systemsManagerInstance'
9797
import SystemsManagerDocument from '../services/systemsManagerDocument'
9898
import RdsClusterSnapshot from '../services/rdsClusterSnapshot'
99+
import VpcEndpoint from '../services/vpcEndpoint'
99100
import APIGatewayDomainName from '../services/apiGatewayDomainName'
100101
import APIGatewayHttpApi from '../services/apiGatewayHttpApi'
101102

@@ -162,6 +163,7 @@ export default {
162163
[services.sg]: AwsSecurityGroup,
163164
[services.subnet]: AwsSubnet,
164165
[services.vpc]: VPC,
166+
[services.vpcEndpoint]: VpcEndpoint,
165167
[services.sqs]: SQS,
166168
[services.rdsCluster]: RDSCluster,
167169
[services.rdsClusterSnapshot]: RdsClusterSnapshot,

src/enums/services.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ export default {
9393
transitGateway: 'transitGateway',
9494
transitGatewayAttachment: 'transitGatewayAttachment',
9595
vpc: 'vpc',
96+
vpcEndpoint: 'vpcEndpoint',
9697
vpnConnection: 'vpnConnection',
9798
vpnGateway: 'vpnGateway',
9899
wafV2WebAcl: 'wafV2WebAcl',

src/properties/logger.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -668,6 +668,10 @@ export default {
668668
* Configuration Recorder Status
669669
*/
670670
fetchedConfigurationRecorderStatus: (num: number): string => `Fetched ${num} Configuration Recorder Status`,
671+
/**
672+
* Vpc Endpoints
673+
*/
674+
fetchedVpcEndpoints: (num: number): string => `Fetched ${num} Vpc Endpoints`,
671675
/**
672676
* Access Analyzers
673677
*/

src/services/account/schema.graphql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ type awsAccount implements awsOptionalService @key(fields: "id") {
9494
transitGateway: [awsTransitGateway]
9595
transitGatewayAttachments: [awsTransitGatewayAttachment]
9696
vpc: [awsVpc]
97+
vpcEndpoints: [awsVpcEndpoint]
9798
vpnConnections: [awsVpnConnection]
9899
vpnGateway: [awsVpnGateway]
99100
wafV2WebAcl: [awsWafV2WebAcl]

src/services/networkInterface/schema.graphql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ type awsNetworkInterface implements awsBaseService @key(fields: "arn") {
2121
sageMakerNotebookInstances: [awsSageMakerNotebookInstance]
2222
@hasInverse(field: networkInterface)
2323
securityGroups: [awsSecurityGroup] @hasInverse(field: networkInterfaces)
24+
vpcEndpoint: [awsVpcEndpoint] @hasInverse(field: networkInterfaces)
2425
}
2526

2627
type awsNetworkInterfaceAttachment

src/services/routeTable/schema.graphql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ type awsRouteTable implements awsBaseService @key(fields: "arn") {
88
subnet: [awsSubnet] @hasInverse(field: routeTable) #change to plural
99
vpc: [awsVpc] @hasInverse(field: routeTables)
1010
transitGateway: [awsTransitGateway] @hasInverse(field: routeTable)
11-
transitGatewayAttachment: [awsTransitGatewayAttachment]
12-
@hasInverse(field: routeTable)
11+
transitGatewayAttachment: [awsTransitGatewayAttachment] @hasInverse(field: routeTable)
12+
vpcEndpoints: [awsVpcEndpoint] @hasInverse(field: routeTables)
1313
}
1414

1515
type awsRoute

src/services/securityGroup/schema.graphql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ type awsSecurityGroup implements awsBaseService @key(fields: "id") {
2929
@hasInverse(field: securityGroups)
3030
sageMakerNotebookInstances: [awsSageMakerNotebookInstance]
3131
@hasInverse(field: securityGroups)
32+
vpcEndpoints: [awsVpcEndpoint] @hasInverse(field: securityGroups)
3233
}
3334

3435
type awsSgOutboundRule

0 commit comments

Comments
 (0)