Skip to content

Commit e74e1a6

Browse files
committed
Merge branch 'alpha' into feature/CG-1204
2 parents b5bda76 + 24de3a9 commit e74e1a6

27 files changed

Lines changed: 529 additions & 9 deletions

CHANGELOG.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,24 @@
1+
# [0.82.0-alpha.2](https://github.com/cloudgraphdev/cloudgraph-provider-aws/compare/0.82.0-alpha.1...0.82.0-alpha.2) (2022-05-23)
2+
3+
4+
### Bug Fixes
5+
6+
* **services:** fix nat gateway service data ([1d0303e](https://github.com/cloudgraphdev/cloudgraph-provider-aws/commit/1d0303ef27ec55a91eb27e015d877fbc428c211d))
7+
8+
# [0.82.0-alpha.1](https://github.com/cloudgraphdev/cloudgraph-provider-aws/compare/0.81.1-alpha.1...0.82.0-alpha.1) (2022-05-23)
9+
10+
11+
### Features
12+
13+
* Add vpcEndpoint service ([a33a61f](https://github.com/cloudgraphdev/cloudgraph-provider-aws/commit/a33a61f1b5cd9f0a4bc49682f0ef44e4d2880283))
14+
15+
## [0.81.1-alpha.1](https://github.com/cloudgraphdev/cloudgraph-provider-aws/compare/0.81.0...0.81.1-alpha.1) (2022-05-23)
16+
17+
18+
### Bug Fixes
19+
20+
* **services:** fix route table service mainRouteTable property ([e99287b](https://github.com/cloudgraphdev/cloudgraph-provider-aws/commit/e99287b91828e57715d240f23a5cc0276799da12))
21+
122
# [0.81.0](https://github.com/cloudgraphdev/cloudgraph-provider-aws/compare/0.80.0...0.81.0) (2022-05-19)
223

324

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, vpcPeeringConnection |
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, vpcPeeringConnection |
165+
| vpcEndpoint | networkInterface, routeTable, securityGroup, subnet, vpc |
165166
| vpcPeeringConnection | vpc |
166167
| vpnConnection | customerGateway, transitGateway, transitGatewayAttachment, vpnGateway |
167168
| vpnGateway | vpc, vpnConnection |

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@cloudgraph/cg-provider-aws",
3-
"version": "0.81.0",
3+
"version": "0.82.0-alpha.2",
44
"description": "cloud-graph provider plugin for AWS used to fetch AWS cloud data.",
55
"publishConfig": {
66
"registry": "https://registry.npmjs.org/",

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.vpcPeeringConnection]: 'awsVpcPeeringConnection',
8384
[services.vpnGateway]: 'awsVpnGateway',
8485
[services.sqs]: 'awsSqs',

src/enums/serviceAliases.ts

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

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
import VpcPeeringConnection from '../services/vpcPeeringConnection'
@@ -163,6 +164,7 @@ export default {
163164
[services.sg]: AwsSecurityGroup,
164165
[services.subnet]: AwsSubnet,
165166
[services.vpc]: VPC,
167+
[services.vpcEndpoint]: VpcEndpoint,
166168
[services.vpcPeeringConnection]: VpcPeeringConnection,
167169
[services.sqs]: SQS,
168170
[services.rdsCluster]: RDSCluster,

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
vpcPeeringConnection: 'vpcPeeringConnection',
9798
vpnConnection: 'vpnConnection',
9899
vpnGateway: 'vpnGateway',

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
vpcPeeringConnections: [awsVpcPeeringConnection]
9899
vpnConnections: [awsVpnConnection]
99100
vpnGateway: [awsVpnGateway]

src/services/natGateway/format.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import cuid from 'cuid'
12
import { AwsNatGateway } from '../../types/generated'
23
import { formatTagsFromMap } from '../../utils/format'
34
import { natGatewayArn } from '../../utils/generateArns'
@@ -20,16 +21,27 @@ export default ({
2021
NatGatewayId: id,
2122
State: state,
2223
CreateTime: createTime,
24+
NatGatewayAddresses: natGatewayAddresses,
2325
Tags
2426
} = rawData
2527

28+
29+
const mappedAddresses = natGatewayAddresses?.map(({ AllocationId, NetworkInterfaceId, PrivateIp, PublicIp }) => ({
30+
id: cuid(),
31+
allocationId: AllocationId,
32+
networkInterfaceId: NetworkInterfaceId,
33+
privateIp: PrivateIp,
34+
publicIp: PublicIp
35+
})) ?? []
36+
2637
return {
2738
id,
2839
tags: formatTagsFromMap(Tags),
2940
accountId: account,
3041
arn: natGatewayArn({ region, account, id }),
3142
region,
3243
state,
44+
natGatewayAddresses: mappedAddresses,
3345
createTime: createTime.toUTCString(),
3446
}
3547
}

0 commit comments

Comments
 (0)