Skip to content

Commit 30bba2d

Browse files
authored
Merge pull request #134 from cloudgraphdev/beta
Release: 0.88.0
2 parents 92a2daf + cd93151 commit 30bba2d

File tree

17 files changed

+131
-39
lines changed

17 files changed

+131
-39
lines changed

CHANGELOG.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,35 @@
1+
# [0.88.0-beta.1](https://github.com/cloudgraphdev/cloudgraph-provider-aws/compare/0.87.0...0.88.0-beta.1) (2023-05-12)
2+
3+
4+
### Bug Fixes
5+
6+
* **aws:** minor change to normalize name ([07a9c02](https://github.com/cloudgraphdev/cloudgraph-provider-aws/commit/07a9c027d5a0946365ebe46ac18bbae72ad7d7b9))
7+
8+
9+
### Features
10+
11+
* add new regions ([d1bd407](https://github.com/cloudgraphdev/cloudgraph-provider-aws/commit/d1bd40793f018fbb95202b9e319057348fadd153))
12+
* **aws:** Added some adjustment needed for TF ([fb8b1c5](https://github.com/cloudgraphdev/cloudgraph-provider-aws/commit/fb8b1c5af21999756c4c2720e9cb6fb5e60e858d))
13+
14+
# [0.88.0-alpha.2](https://github.com/cloudgraphdev/cloudgraph-provider-aws/compare/0.88.0-alpha.1...0.88.0-alpha.2) (2023-05-12)
15+
16+
17+
### Bug Fixes
18+
19+
* **aws:** minor change to normalize name ([07a9c02](https://github.com/cloudgraphdev/cloudgraph-provider-aws/commit/07a9c027d5a0946365ebe46ac18bbae72ad7d7b9))
20+
21+
22+
### Features
23+
24+
* **aws:** Added some adjustment needed for TF ([fb8b1c5](https://github.com/cloudgraphdev/cloudgraph-provider-aws/commit/fb8b1c5af21999756c4c2720e9cb6fb5e60e858d))
25+
26+
# [0.88.0-alpha.1](https://github.com/cloudgraphdev/cloudgraph-provider-aws/compare/0.87.0...0.88.0-alpha.1) (2023-05-03)
27+
28+
29+
### Features
30+
31+
* add new regions ([d1bd407](https://github.com/cloudgraphdev/cloudgraph-provider-aws/commit/d1bd40793f018fbb95202b9e319057348fadd153))
32+
133
# [0.87.0](https://github.com/cloudgraphdev/cloudgraph-provider-aws/compare/0.86.1...0.87.0) (2023-04-28)
234

335

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.87.0",
3+
"version": "0.88.0-beta.1",
44
"description": "cloud-graph provider plugin for AWS used to fetch AWS cloud data.",
55
"publishConfig": {
66
"registry": "https://registry.npmjs.org/",

src/enums/regions.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,25 @@ export const regionMap = {
88
caCentral1: 'ca-central-1', // Canada Central
99
apEast1: 'ap-east-1', // Hong Kong
1010
apSouth1: 'ap-south-1', // Mumbai
11+
apSouth2: 'ap-south-2', // Hyderabad
1112
apNortheast1: 'ap-northeast-1', // Tokyo
1213
apNortheast2: 'ap-northeast-2', // Seoul
1314
apNortheast3: 'ap-northeast-3', // Osaka-Local
1415
apSoutheast1: 'ap-southeast-1', // Singapore
1516
apSoutheast2: 'ap-southeast-2', // Sydney
17+
apSoutheast3: 'ap-southeast-3', // Jakarta
18+
apSoutheast4: 'ap-southeast-4', // Melbourne
1619
afSouth1: 'af-south-1', // Africa (cape town)
1720
euCentral1: 'eu-central-1', // Frankfurt
21+
euCentral2: 'eu-central-2', // Zurich
1822
euWest1: 'eu-west-1', // Ireland
1923
euWest2: 'eu-west-2', // London
2024
euWest3: 'eu-west-3', // Paris
2125
euSouth1: 'eu-south-1', // Milan
26+
euSouth2: 'eu-south-2', // Spain
2227
euNorth1: 'eu-north-1', // Stockholm
2328
meSouth1: 'me-south-1', // Bahrain
29+
meCentral1: 'me-central-1', // UAE
2430
saEast1: 'sa-east-1', // Sao Paulo
2531
usGovEast1: 'us-gov-east-1', // US-East
2632
usGovWest1: 'us-gov-west-1', // US-west
@@ -36,19 +42,25 @@ const {
3642
caCentral1,
3743
apEast1,
3844
apSouth1,
45+
apSouth2,
3946
apNortheast1,
4047
apNortheast2,
4148
apNortheast3,
4249
apSoutheast1,
4350
apSoutheast2,
51+
apSoutheast3,
52+
apSoutheast4,
4453
afSouth1,
4554
euCentral1,
55+
euCentral2,
4656
euWest1,
4757
euWest2,
4858
euWest3,
4959
euSouth1,
60+
euSouth2,
5061
euNorth1,
5162
meSouth1,
63+
meCentral1,
5264
saEast1,
5365
usGovEast1,
5466
usGovWest1,
@@ -64,19 +76,25 @@ export default [
6476
caCentral1,
6577
apEast1,
6678
apSouth1,
79+
apSouth2,
6780
apNortheast1,
6881
apNortheast2,
6982
apNortheast3,
7083
apSoutheast1,
7184
apSoutheast2,
85+
apSoutheast3,
86+
apSoutheast4,
7287
afSouth1,
7388
euCentral1,
89+
euCentral2,
7490
euWest1,
7591
euWest2,
7692
euWest3,
7793
euSouth1,
94+
euSouth2,
7895
euNorth1,
7996
meSouth1,
97+
meCentral1,
8098
saEast1,
8199
usGovEast1,
82100
usGovWest1,

src/enums/serviceAliases.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export default {
5454
[services.lambda]: 'lambdaFunctions',
5555
[services.managedAirflow]: 'managedAirflows',
5656
[services.managedPrefixList]: 'managedPrefixLists',
57-
[services.mskCluster]: 'mskCluster',
57+
[services.mskCluster]: 'mskClusters',
5858
[services.nat]: 'natGateway',
5959
[services.networkInterface]: 'networkInterfaces',
6060
[services.organization]: 'organizations',

src/services/account/schema.graphql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ type awsAccount implements awsOptionalService @key(fields: "id") {
6969
lambdaFunctions: [awsLambda]
7070
managedAirflows: [awsManagedAirflow]
7171
managedPrefixLists: [awsManagedPrefixList]
72+
mskClusters: [awsMskCluster]
7273
nacl: [awsNetworkAcl]
7374
natGateway: [awsNatGateway]
7475
networkInterfaces: [awsNetworkInterface]

src/services/apiGatewayResource/format.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export default ({
1515
region: string
1616
account: string
1717
}): AwsAGResourceType => {
18-
const { id, path, resourceMethods = {} } = service
18+
const { id, path, restApiId, resourceMethods = {} } = service
1919

2020
const arn = apiGatewayResourceArn({
2121
restApiArn: apiGatewayArn({ region: service.region }),
@@ -39,5 +39,6 @@ export default ({
3939
region,
4040
path,
4141
methods,
42+
restApiId
4243
}
4344
}

src/services/apiGatewayResource/schema.graphql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ type awsApiGatewayMethod @key(fields: "arn") {
77
}
88

99
type awsApiGatewayResource implements awsBaseService @key(fields: "arn") {
10+
restApiId: String @search(by: [hash, regexp])
1011
restApi: [awsApiGatewayRestApi] @hasInverse(field: resources) #change to plural
1112
path: String @search(by: [hash, regexp])
1213
methods: [awsApiGatewayMethod]

src/services/apiGatewayStage/format.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export default ({
2222
variables: vars = {},
2323
tags = {},
2424
region,
25+
restApiId
2526
} = service
2627

2728
const variables = Object.entries(vars).map(([k, v]) => ({
@@ -45,5 +46,6 @@ export default ({
4546
xrayTracing: tracingEnabled,
4647
variables,
4748
tags: formatTagsFromMap(tags),
49+
restApiId
4850
}
4951
}

src/services/apiGatewayStage/schema.graphql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ type awsApiGatewayStage implements awsBaseService @key(fields: "arn") {
2929
documentationVersion: String @search(by: [hash, regexp])
3030
clientCertificateId: String @search(by: [hash])
3131
xrayTracing: Boolean @search
32+
restApiId: String @search(by: [hash, regexp])
3233
variables: [awsApiGatewayStageVariable]
3334
tags: [awsRawTag]
3435
restApi: [awsApiGatewayRestApi] @hasInverse(field: stages)

src/services/msk/connections.ts

Lines changed: 23 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { ServiceConnection } from '@cloudgraph/sdk'
22

3-
import services from '../../enums/services'
43
import { Cluster } from 'aws-sdk/clients/kafka'
4+
import services from '../../enums/services'
55

66
/**
77
* Msk
@@ -22,42 +22,35 @@ export default ({
2222
}): { [key: string]: ServiceConnection[] } => {
2323
const connections: ServiceConnection[] = []
2424

25-
const {
26-
ClusterArn: id,
27-
Serverless: serverless,
28-
} = mskCluster || {}
29-
25+
const { ClusterArn: id, Serverless: serverless } = mskCluster || {}
26+
3027
/**
3128
* Add subnets
3229
*/
33-
serverless?.VpcConfigs
34-
?.filter(vc => vc.SubnetIds)
35-
?.forEach(vc => {
36-
connections.push(
37-
...vc?.SubnetIds?.map(subnetId => ({
38-
id: subnetId,
39-
resourceType: services.subnet,
40-
relation: 'child',
41-
field: 'subnet',
42-
}))
43-
)
44-
})
30+
serverless?.VpcConfigs?.filter(vc => vc.SubnetIds)?.forEach(vc => {
31+
connections.push(
32+
...vc?.SubnetIds?.map(subnetId => ({
33+
id: subnetId,
34+
resourceType: services.subnet,
35+
relation: 'child',
36+
field: 'subnets',
37+
}))
38+
)
39+
})
4540

4641
/**
4742
* Add Security Groups
4843
*/
49-
serverless?.VpcConfigs
50-
?.filter(vc => vc.SecurityGroupIds)
51-
?.forEach(vc => {
52-
connections.push(
53-
...vc?.SecurityGroupIds?.map(sgId => ({
54-
id: sgId,
55-
resourceType: services.sg,
56-
relation: 'child',
57-
field: 'securityGroups',
58-
}))
59-
)
60-
})
44+
serverless?.VpcConfigs?.filter(vc => vc.SecurityGroupIds)?.forEach(vc => {
45+
connections.push(
46+
...vc?.SecurityGroupIds?.map(sgId => ({
47+
id: sgId,
48+
resourceType: services.sg,
49+
relation: 'child',
50+
field: 'securityGroups',
51+
}))
52+
)
53+
})
6154

6255
const mskResult = {
6356
[id]: connections,

0 commit comments

Comments
 (0)