Skip to content

Commit 77c0cae

Browse files
authored
Merge pull request #98 from cloudgraphdev/beta
Release 0.83.0
2 parents 85684e9 + 947ce4a commit 77c0cae

File tree

75 files changed

+3343
-2743
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+3343
-2743
lines changed

CHANGELOG.md

Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,127 @@
1+
# [0.83.0-beta.1](https://github.com/cloudgraphdev/cloudgraph-provider-aws/compare/0.82.0...0.83.0-beta.1) (2022-08-26)
2+
3+
4+
### Bug Fixes
5+
6+
* add missing statement elements needed for the policy definitions ([f09656b](https://github.com/cloudgraphdev/cloudgraph-provider-aws/commit/f09656bac77b65e76a5896f024be88e5d3105fbf))
7+
* **apiGatewayDomainName:** use ISO string in conversion ([04866de](https://github.com/cloudgraphdev/cloudgraph-provider-aws/commit/04866deb8a74827b1f855cea0dab71c7e30ef5bc))
8+
* **deps:** update sdk dep ([bc8f98a](https://github.com/cloudgraphdev/cloudgraph-provider-aws/commit/bc8f98a17f32103ed88ecf1e4e0505f30caff87e))
9+
* **iamRole:** added iamBoundaryPermissionPolicy relation and inline policies json documents ([3a713f6](https://github.com/cloudgraphdev/cloudgraph-provider-aws/commit/3a713f66327610f0ae2f3b2200b82f62a6754a08))
10+
* **iamRole:** iamPermissionsBoundary and inlinePolicies bug fixes ([9923ba3](https://github.com/cloudgraphdev/cloudgraph-provider-aws/commit/9923ba3ab2da93477a05a689b7db34fdb08b71f5))
11+
* **iamRole:** replace inlinePolicies id gen method from cuid to generateUniqueId ([15de961](https://github.com/cloudgraphdev/cloudgraph-provider-aws/commit/15de96133012fc9a8a037f46c1b4cda2627195dc))
12+
* Optional chaining for last used details ([751a86b](https://github.com/cloudgraphdev/cloudgraph-provider-aws/commit/751a86b9911a67d916aee7b7e36ab6eb4101f5ba))
13+
* **performance:** improve tags processing time ([def9b1f](https://github.com/cloudgraphdev/cloudgraph-provider-aws/commit/def9b1ff63257508d644f562ba1f9cb24f009d66))
14+
* Released memory usage fix ([1674215](https://github.com/cloudgraphdev/cloudgraph-provider-aws/commit/16742153c68f37c8ea47548ead3e20fec8586ca6))
15+
* Released memory usage fix ([b6d242b](https://github.com/cloudgraphdev/cloudgraph-provider-aws/commit/b6d242b20e2ece71e07874466c21277d47ca18fa))
16+
* **services:** Added encryption rules data to s3 service ([dde6694](https://github.com/cloudgraphdev/cloudgraph-provider-aws/commit/dde6694fcb5af38f8919c291454e736620d4fe89))
17+
* **services:** fix for rds db instance ([5052362](https://github.com/cloudgraphdev/cloudgraph-provider-aws/commit/5052362387b0ea11a6c6eb842c4b02d904b6b2d9))
18+
19+
20+
### Features
21+
22+
* **iamRole:** Add lastUsedDate ([9c7bd36](https://github.com/cloudgraphdev/cloudgraph-provider-aws/commit/9c7bd36bac04f83482f967e4ac7e990ccdd49f40))
23+
* Replaced cuid library for generateUniqueId util ([aca3e8f](https://github.com/cloudgraphdev/cloudgraph-provider-aws/commit/aca3e8f33faf445d71c951a6c327ed9095a76255))
24+
* Replaced cuid with unique ids for policies ([30ad96c](https://github.com/cloudgraphdev/cloudgraph-provider-aws/commit/30ad96c771b18adf3084a39b0f5eb5ab8954d923))
25+
* **service:** Added default encryption kms connection ([a999cf7](https://github.com/cloudgraphdev/cloudgraph-provider-aws/commit/a999cf71b6db5ae579ef72051d58ac8e2c85d7b8))
26+
* Solved duplication issues ([896e813](https://github.com/cloudgraphdev/cloudgraph-provider-aws/commit/896e81371780b2b57b630b112dcd2848735fb423))
27+
28+
# [0.83.0-alpha.11](https://github.com/cloudgraphdev/cloudgraph-provider-aws/compare/0.83.0-alpha.10...0.83.0-alpha.11) (2022-07-06)
29+
30+
31+
### Bug Fixes
32+
33+
* **iamRole:** iamPermissionsBoundary and inlinePolicies bug fixes ([9923ba3](https://github.com/cloudgraphdev/cloudgraph-provider-aws/commit/9923ba3ab2da93477a05a689b7db34fdb08b71f5))
34+
35+
# [0.83.0-alpha.10](https://github.com/cloudgraphdev/cloudgraph-provider-aws/compare/0.83.0-alpha.9...0.83.0-alpha.10) (2022-07-05)
36+
37+
38+
### Bug Fixes
39+
40+
* **iamRole:** replace inlinePolicies id gen method from cuid to generateUniqueId ([15de961](https://github.com/cloudgraphdev/cloudgraph-provider-aws/commit/15de96133012fc9a8a037f46c1b4cda2627195dc))
41+
42+
# [0.83.0-alpha.9](https://github.com/cloudgraphdev/cloudgraph-provider-aws/compare/0.83.0-alpha.8...0.83.0-alpha.9) (2022-07-01)
43+
44+
45+
### Bug Fixes
46+
47+
* **iamRole:** added iamBoundaryPermissionPolicy relation and inline policies json documents ([3a713f6](https://github.com/cloudgraphdev/cloudgraph-provider-aws/commit/3a713f66327610f0ae2f3b2200b82f62a6754a08))
48+
49+
# [0.83.0-alpha.8](https://github.com/cloudgraphdev/cloudgraph-provider-aws/compare/0.83.0-alpha.7...0.83.0-alpha.8) (2022-06-23)
50+
51+
52+
### Bug Fixes
53+
54+
* add missing statement elements needed for the policy definitions ([f09656b](https://github.com/cloudgraphdev/cloudgraph-provider-aws/commit/f09656bac77b65e76a5896f024be88e5d3105fbf))
55+
56+
# [0.83.0-alpha.7](https://github.com/cloudgraphdev/cloudgraph-provider-aws/compare/0.83.0-alpha.6...0.83.0-alpha.7) (2022-06-22)
57+
58+
59+
### Bug Fixes
60+
61+
* **performance:** improve tags processing time ([def9b1f](https://github.com/cloudgraphdev/cloudgraph-provider-aws/commit/def9b1ff63257508d644f562ba1f9cb24f009d66))
62+
63+
# [0.83.0-alpha.6](https://github.com/cloudgraphdev/cloudgraph-provider-aws/compare/0.83.0-alpha.5...0.83.0-alpha.6) (2022-06-20)
64+
65+
66+
### Bug Fixes
67+
68+
* Optional chaining for last used details ([751a86b](https://github.com/cloudgraphdev/cloudgraph-provider-aws/commit/751a86b9911a67d916aee7b7e36ab6eb4101f5ba))
69+
70+
# [0.83.0-alpha.5](https://github.com/cloudgraphdev/cloudgraph-provider-aws/compare/0.83.0-alpha.4...0.83.0-alpha.5) (2022-06-20)
71+
72+
73+
### Bug Fixes
74+
75+
* Released memory usage fix ([1674215](https://github.com/cloudgraphdev/cloudgraph-provider-aws/commit/16742153c68f37c8ea47548ead3e20fec8586ca6))
76+
77+
# [0.83.0-alpha.4](https://github.com/cloudgraphdev/cloudgraph-provider-aws/compare/0.83.0-alpha.3...0.83.0-alpha.4) (2022-06-20)
78+
79+
80+
### Bug Fixes
81+
82+
* Released memory usage fix ([b6d242b](https://github.com/cloudgraphdev/cloudgraph-provider-aws/commit/b6d242b20e2ece71e07874466c21277d47ca18fa))
83+
84+
# [0.83.0-alpha.3](https://github.com/cloudgraphdev/cloudgraph-provider-aws/compare/0.83.0-alpha.2...0.83.0-alpha.3) (2022-06-17)
85+
86+
87+
### Bug Fixes
88+
89+
* **apiGatewayDomainName:** use ISO string in conversion ([04866de](https://github.com/cloudgraphdev/cloudgraph-provider-aws/commit/04866deb8a74827b1f855cea0dab71c7e30ef5bc))
90+
91+
# [0.83.0-alpha.2](https://github.com/cloudgraphdev/cloudgraph-provider-aws/compare/0.83.0-alpha.1...0.83.0-alpha.2) (2022-06-13)
92+
93+
94+
### Bug Fixes
95+
96+
* **services:** Added encryption rules data to s3 service ([dde6694](https://github.com/cloudgraphdev/cloudgraph-provider-aws/commit/dde6694fcb5af38f8919c291454e736620d4fe89))
97+
98+
99+
### Features
100+
101+
* **service:** Added default encryption kms connection ([a999cf7](https://github.com/cloudgraphdev/cloudgraph-provider-aws/commit/a999cf71b6db5ae579ef72051d58ac8e2c85d7b8))
102+
103+
# [0.83.0-alpha.1](https://github.com/cloudgraphdev/cloudgraph-provider-aws/compare/0.82.1-alpha.1...0.83.0-alpha.1) (2022-06-09)
104+
105+
106+
### Bug Fixes
107+
108+
* **deps:** update sdk dep ([bc8f98a](https://github.com/cloudgraphdev/cloudgraph-provider-aws/commit/bc8f98a17f32103ed88ecf1e4e0505f30caff87e))
109+
110+
111+
### Features
112+
113+
* **iamRole:** Add lastUsedDate ([9c7bd36](https://github.com/cloudgraphdev/cloudgraph-provider-aws/commit/9c7bd36bac04f83482f967e4ac7e990ccdd49f40))
114+
* Replaced cuid library for generateUniqueId util ([aca3e8f](https://github.com/cloudgraphdev/cloudgraph-provider-aws/commit/aca3e8f33faf445d71c951a6c327ed9095a76255))
115+
* Replaced cuid with unique ids for policies ([30ad96c](https://github.com/cloudgraphdev/cloudgraph-provider-aws/commit/30ad96c771b18adf3084a39b0f5eb5ab8954d923))
116+
* Solved duplication issues ([896e813](https://github.com/cloudgraphdev/cloudgraph-provider-aws/commit/896e81371780b2b57b630b112dcd2848735fb423))
117+
118+
## [0.82.1-alpha.1](https://github.com/cloudgraphdev/cloudgraph-provider-aws/compare/0.82.0...0.82.1-alpha.1) (2022-06-03)
119+
120+
121+
### Bug Fixes
122+
123+
* **services:** fix for rds db instance ([5052362](https://github.com/cloudgraphdev/cloudgraph-provider-aws/commit/5052362387b0ea11a6c6eb842c4b02d904b6b2d9))
124+
1125
# [0.82.0](https://github.com/cloudgraphdev/cloudgraph-provider-aws/compare/0.81.0...0.82.0) (2022-06-02)
2126

3127

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ CloudGraph AWS Provider will ask you what regions you would like to crawl and wi
133133
| iot | |
134134
| kinesisFirehose | kinesisStream, s3, iamRole |
135135
| kinesisStream | kinesisFirehose |
136-
| kms | cloudtrail, cloudwatchLog, codebuild, ecsCluster, efs, eksCluster, elastiCacheReplicationGroup, elasticSearchDomain, emrCluster, managedAirflow, lambda, rdsCluster, rdsClusterSnapshot, rdsDbInstance, sns, sageMakerNotebookInstance, secretsManager, dmsReplicationInstance, redshiftCluster |
136+
| kms | cloudtrail, cloudwatchLog, codebuild, ecsCluster, efs, eksCluster, elastiCacheReplicationGroup, elasticSearchDomain, emrCluster, managedAirflow, lambda, rdsCluster, rdsClusterSnapshot, rdsDbInstance, sns, sageMakerNotebookInstance, secretsManager, dmsReplicationInstance, redshiftCluster, s3 |
137137
| lambda | appSync, cognitoUserPool, kms, s3, secretsManager, securityGroup, subnet, vpc, iamRole |
138138
| managedAirflow | cloudwatchLog, iamRole, kms, securityGroups, subnet, s3 |
139139
| managedPrefixList | |
@@ -151,7 +151,7 @@ CloudGraph AWS Provider will ask you what regions you would like to crawl and wi
151151
| sageMakerExperiment | |
152152
| sageMakerNotebookInstance | iamRole, kms, networkInterface, subnet, securityGroup |
153153
| sageMakerProject | |
154-
| s3 | cloudfront, cloudtrail, ecsCluster, iamRole, kinesisFirehose, lambda, managedAirflow, sns, sqs |
154+
| s3 | cloudfront, cloudtrail, ecsCluster, iamRole, kinesisFirehose, kms, lambda, managedAirflow, sns, sqs |
155155
| secretsManager | kms, lambda |
156156
| securityGroup | alb, asg, clientVpnEndpoint, codebuild, dmsReplicationInstance, ecsService, lambda, ec2, elasticSearchDomain, elb, rdsCluster, rdsDbInstance, eksCluster, elastiCacheCluster, managedAirflow, sageMakerNotebookInstance, networkInterface, vpcEndpoint |
157157
| ses | |

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@cloudgraph/cg-provider-aws",
3-
"version": "0.82.0",
3+
"version": "0.83.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/",
@@ -31,7 +31,7 @@
3131
"terraform:cleanup": "rimraf ./tests/terraform/{.terraform,.terraform.lock.hcl,tfplan} ./tests/terraform/*.{tfstate,tfplan,backup}"
3232
},
3333
"dependencies": {
34-
"@cloudgraph/sdk": "0.14.2",
34+
"@cloudgraph/sdk": "0.20.0",
3535
"@fast-csv/parse": "^4.3.6",
3636
"@graphql-tools/load-files": "6.3.2",
3737
"@graphql-tools/merge": "8.0.1",

src/services/apiGatewayDomainName/format.ts

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import cuid from 'cuid'
1+
import { generateUniqueId } from '@cloudgraph/sdk'
2+
23
import { RawAwsApiGatewayDomainName } from './data'
34
import { AwsApiGatewayDomainName } from '../../types/generated'
45
import { domainNameArn } from '../../utils/generateArns'
@@ -29,19 +30,23 @@ export default ({
2930
region,
3031
domainName,
3132
apiMappingSelectionExpression,
32-
configurations: domainNameConfigurations?.map(dn => ({
33-
id: cuid(),
34-
apiGatewayDomainName: dn.ApiGatewayDomainName,
35-
certificateArn: dn.CertificateArn,
36-
certificateName: dn.CertificateName,
37-
certificateUploadDate: dn.CertificateUploadDate?.toDateString(),
38-
domainNameStatus: dn.DomainNameStatus,
39-
domainNameStatusMessage: dn.DomainNameStatusMessage,
40-
endpointType: dn.EndpointType,
41-
securityPolicy: dn.SecurityPolicy,
42-
ownershipVerificationCertificateArn:
43-
dn.OwnershipVerificationCertificateArn,
44-
})) || [],
33+
configurations:
34+
domainNameConfigurations?.map(dn => ({
35+
id: generateUniqueId({
36+
arn,
37+
...dn,
38+
}),
39+
apiGatewayDomainName: dn.ApiGatewayDomainName,
40+
certificateArn: dn.CertificateArn,
41+
certificateName: dn.CertificateName,
42+
certificateUploadDate: dn.CertificateUploadDate?.toISOString(),
43+
domainNameStatus: dn.DomainNameStatus,
44+
domainNameStatusMessage: dn.DomainNameStatusMessage,
45+
endpointType: dn.EndpointType,
46+
securityPolicy: dn.SecurityPolicy,
47+
ownershipVerificationCertificateArn:
48+
dn.OwnershipVerificationCertificateArn,
49+
})) || [],
4550
tags: formatTagsFromMap(tags),
4651
}
4752
}

src/services/apiGatewayStage/format.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import cuid from 'cuid'
2-
31
import { RawAwsApiGatewayStage } from './data'
42
import { AwsApiGatewayStage as AwsAGStageType } from '../../types/generated'
53
import { formatTagsFromMap } from '../../utils/format'
@@ -27,7 +25,7 @@ export default ({
2725
} = service
2826

2927
const variables = Object.entries(vars).map(([k, v]) => ({
30-
id: cuid(),
28+
id: `${k}:${v}`,
3129
key: k,
3230
value: v,
3331
}))

src/services/appSync/format.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1+
import { generateUniqueId } from '@cloudgraph/sdk'
12
import { ApiKey, DataSource, Resolver } from 'aws-sdk/clients/appsync'
2-
import cuid from 'cuid'
3+
34
import t from '../../properties/translations'
45
import {
56
AwsAppSyncApiKey,
@@ -197,7 +198,12 @@ export default ({
197198
userPoolConfig: additionalUserPoolConfig,
198199
}) => {
199200
return {
200-
id: cuid(),
201+
id: generateUniqueId({
202+
arn,
203+
additionalAuthenticationType,
204+
additionalOpenIDConnectConfig,
205+
additionalUserPoolConfig,
206+
}),
201207
authenticationType: additionalAuthenticationType || '',
202208
openIDConnectIssuer: additionalOpenIDConnectConfig?.issuer || '',
203209
openIDConnectClientId: additionalOpenIDConnectConfig?.clientId || '',
@@ -214,7 +220,7 @@ export default ({
214220
const formatUrisData = (): AwsAppSyncGraphqlApiUris[] => {
215221
const result: AwsAppSyncGraphqlApiUris[] = []
216222
for (const [key, value] of Object.entries(uris)) {
217-
result.push({ id: cuid(), key, value })
223+
result.push({ id: `${key}:${value}`, key, value })
218224
}
219225
return result
220226
}

0 commit comments

Comments
 (0)