Skip to content

Commit

Permalink
fix(rules): add AWS Glue
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel committed Sep 18, 2023
1 parent bd1d906 commit 4f4ea7f
Show file tree
Hide file tree
Showing 9 changed files with 52 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/rules/__snapshots__/index.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ exports[`all > should match everything 1`] = `
"aws.elasticache",
"aws.fargate",
"aws.glacier",
"aws.glue",
"aws.kinesis",
"aws.kms",
"aws.lambda",
Expand Down
19 changes: 19 additions & 0 deletions src/rules/etl/aws.glue.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { register } from '../../register.js';

register({
tech: 'aws.glue',
name: 'AWS Glue',
type: 'etl',
dependencies: [
{ type: 'npm', name: '@aws-sdk/client-glue' },
{ type: 'npm', name: '@aws-cdk/aws-glue' },
{ type: 'rust', name: 'aws-sdk-glue' },
{ type: 'ruby', name: 'aws-sdk-glue' },
{ type: 'golang', name: 'github.com/aws/aws-sdk-go-v2/service/glue' },
{
type: 'terraform.resource',
name: /^aws_glue_/,
example: 'aws_glue_crawler',
},
],
});
1 change: 1 addition & 0 deletions src/rules/etl/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import './airbyte.js';
import './apache_airflow.js';
import './apache_flink.js';
import './apache_storm.js';
import './aws.glue.js';
import './databricks.js';
import './dataiku.js';
import './gcp.dataproc.js';
Expand Down
6 changes: 6 additions & 0 deletions src/rules/spec/golang/__snapshots__/lockfile.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ exports[`golang (lockfile) > should match everything 1`] = `
"aws.eks",
"aws.elasticache",
"aws.glacier",
"aws.glue",
"aws.kinesis",
"aws.kms",
"aws.lambda",
Expand Down Expand Up @@ -321,6 +322,11 @@ exports[`golang (lockfile) > should match everything 2`] = `
"github.com/aws/aws-sdk-go-v2/service/glacier",
"v1.0.0",
],
[
"golang",
"github.com/aws/aws-sdk-go-v2/service/glue",
"v1.0.0",
],
[
"golang",
"github.com/aws/aws-sdk-go-v2/service/kinesis",
Expand Down
11 changes: 11 additions & 0 deletions src/rules/spec/nodejs/__snapshots__/component.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ exports[`npm > should match everything 1`] = `
"aws.eks",
"aws.elasticache",
"aws.glacier",
"aws.glue",
"aws.kinesis",
"aws.kms",
"aws.lambda",
Expand Down Expand Up @@ -309,6 +310,11 @@ exports[`npm > should match everything 2`] = `
"@aws-cdk/aws-firehose",
"0.0.0",
],
[
"npm",
"@aws-cdk/aws-glue",
"0.0.0",
],
[
"npm",
"@aws-cdk/aws-kinesis",
Expand Down Expand Up @@ -499,6 +505,11 @@ exports[`npm > should match everything 2`] = `
"@aws-sdk/client-glacier",
"0.0.0",
],
[
"npm",
"@aws-sdk/client-glue",
"0.0.0",
],
[
"npm",
"@aws-sdk/client-kinesis",
Expand Down
6 changes: 6 additions & 0 deletions src/rules/spec/ruby/__snapshots__/lockfile.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ exports[`ruby (component) > should match everything 1`] = `
"aws.eks",
"aws.elasticache",
"aws.glacier",
"aws.glue",
"aws.kinesis",
"aws.kms",
"aws.lambda",
Expand Down Expand Up @@ -248,6 +249,11 @@ exports[`ruby (component) > should match everything 2`] = `
"aws-sdk-glacier",
"1.0.0",
],
[
"ruby",
"aws-sdk-glue",
"1.0.0",
],
[
"ruby",
"aws-sdk-kinesis",
Expand Down
6 changes: 6 additions & 0 deletions src/rules/spec/rust/__snapshots__/component.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ exports[`rust (component) > should match everything 1`] = `
"aws.eks",
"aws.elasticache",
"aws.glacier",
"aws.glue",
"aws.kinesis",
"aws.kms",
"aws.lambda",
Expand Down Expand Up @@ -192,6 +193,11 @@ exports[`rust (component) > should match everything 2`] = `
"aws-sdk-glacier",
"1.0.0",
],
[
"rust",
"aws-sdk-glue",
"1.0.0",
],
[
"rust",
"aws-sdk-kinesis",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ exports[`terraform (resource) > should match everything 1`] = `
"aws.eks",
"aws.elasticache",
"aws.glacier",
"aws.glue",
"aws.kinesis",
"aws.kms",
"aws.lambda",
Expand Down
1 change: 1 addition & 0 deletions src/types/techs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ export type AllowedKeys =
| 'aws.elasticache'
| 'aws.fargate'
| 'aws.glacier'
| 'aws.glue'
| 'aws.kinesis'
| 'aws.kms'
| 'aws.lambda'
Expand Down

0 comments on commit 4f4ea7f

Please sign in to comment.