Skip to content

Commit

Permalink
fix(rules): add AWS Athena
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel committed Sep 18, 2023
1 parent 1ae666e commit db5c25c
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 @@ -24,6 +24,7 @@ exports[`all > should match everything 1`] = `
"auth0",
"aws",
"aws.amplify_hosting",
"aws.athena",
"aws.cloudfront",
"aws.codebuild",
"aws.documentdb",
Expand Down
19 changes: 19 additions & 0 deletions src/rules/db/aws.athena.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { register } from '../../register.js';

register({
tech: 'aws.athena',
name: 'AWS Athena',
type: 'db',
dependencies: [
{ type: 'npm', name: '@aws-cdk/aws-athena' },
{ type: 'npm', name: '@aws-sdk/client-athena' },
{ type: 'rust', name: 'aws-sdk-athena' },
{ type: 'ruby', name: 'aws-sdk-athena' },
{ type: 'golang', name: 'github.com/aws/aws-sdk-go-v2/service/athena' },
{
type: 'terraform.resource',
name: /^aws_athena/,
example: 'aws_athena_database',
},
],
});
1 change: 1 addition & 0 deletions src/rules/db/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import './apache_cassandra.js';
import './apache_couchdb.js';
import './apache_iceberg.js';
import './apache_spark.js';
import './aws.athena.js';
import './aws.documentdb.js';
import './aws.dynamodb.js';
import './aws.elasticache.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 @@ -3,6 +3,7 @@
exports[`golang (lockfile) > should match everything 1`] = `
[
"aws",
"aws.athena",
"aws.cloudfront",
"aws.documentdb",
"aws.dynamodb",
Expand Down Expand Up @@ -213,6 +214,11 @@ exports[`golang (lockfile) > should match everything 2`] = `
"github.com/aws/aws-sdk-go-v2",
"v1.0.0",
],
[
"golang",
"github.com/aws/aws-sdk-go-v2/service/athena",
"v1.0.0",
],
[
"golang",
"github.com/aws/aws-sdk-go-v2/service/cloudfront",
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 @@ -10,6 +10,7 @@ exports[`npm > should match everything 1`] = `
"auth0",
"aws",
"aws.amplify_hosting",
"aws.athena",
"aws.cloudfront",
"aws.codebuild",
"aws.documentdb",
Expand Down Expand Up @@ -208,6 +209,11 @@ exports[`npm > should match everything 2`] = `
"@aws-amplify/ui-react",
"0.0.0",
],
[
"npm",
"@aws-cdk/aws-athena",
"0.0.0",
],
[
"npm",
"@aws-cdk/aws-cloudfront",
Expand Down Expand Up @@ -293,6 +299,11 @@ exports[`npm > should match everything 2`] = `
"@aws-sdk/aws-redshift",
"0.0.0",
],
[
"npm",
"@aws-sdk/client-athena",
"0.0.0",
],
[
"npm",
"@aws-sdk/client-cloudfront",
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 @@ -5,6 +5,7 @@ exports[`ruby (component) > should match everything 1`] = `
"algolia",
"auth0",
"aws",
"aws.athena",
"aws.cloudfront",
"aws.documentdb",
"aws.dynamodb",
Expand Down Expand Up @@ -129,6 +130,11 @@ exports[`ruby (component) > should match everything 2`] = `
"auth0",
"1.0.0",
],
[
"ruby",
"aws-sdk-athena",
"1.0.0",
],
[
"ruby",
"aws-sdk-cloudfront",
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 @@ -6,6 +6,7 @@ exports[`rust (component) > should match everything 1`] = `
"apache_cassandra",
"auth0",
"aws",
"aws.athena",
"aws.cloudfront",
"aws.codebuild",
"aws.documentdb",
Expand Down Expand Up @@ -74,6 +75,11 @@ exports[`rust (component) > should match everything 2`] = `
"auth0",
"1.0.0",
],
[
"rust",
"aws-sdk-athena",
"1.0.0",
],
[
"rust",
"aws-sdk-cloudfront",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ exports[`terraform (resource) > should match everything 1`] = `
[
"aws",
"aws.amplify_hosting",
"aws.athena",
"aws.cloudfront",
"aws.codebuild",
"aws.documentdb",
Expand Down
1 change: 1 addition & 0 deletions src/types/techs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export type AllowedKeys =
| 'atlassian'
| 'auth0'
| 'aws.amplify_hosting'
| 'aws.athena'
| 'aws.cloudfront'
| 'aws.codebuild'
| 'aws.documentdb'
Expand Down

0 comments on commit db5c25c

Please sign in to comment.