Skip to content

Commit

Permalink
fix(rules): add Aws.ElastiCache
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel committed Aug 21, 2023
1 parent 5f1d9dc commit 4f1ab2f
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/rules/db/aws.elasticache.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { register } from '../../register.js';

register({
tech: 'aws.elasticache',
name: 'ElastiCache',
type: 'db',
dependencies: [
{ type: 'npm', name: '@aws-sdk/client-elasticache' },
{ type: 'rust', name: 'aws-sdk-elasticache' },
{ type: 'ruby', name: 'aws-sdk-elasticache' },
],
});
1 change: 1 addition & 0 deletions src/rules/db/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import './aws.dynamodb.js';
import './aws.elasticache.js';
import './aws.rds.js';
import './cassandra.js';
import './cockroachdb.js';
Expand Down
6 changes: 6 additions & 0 deletions src/rules/spec/nodejs/__snapshots__/component.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ exports[`npm > should match everything 1`] = `
"aws",
"aws.dynamodb",
"aws.ec2",
"aws.elasticache",
"aws.glacier",
"aws.lambda",
"aws.rds",
Expand Down Expand Up @@ -126,6 +127,11 @@ exports[`npm > should match everything 2`] = `
"@aws-sdk/client-ec2",
"0.0.0",
],
[
"npm",
"@aws-sdk/client-elasticache",
"0.0.0",
],
[
"npm",
"@aws-sdk/client-glacier",
Expand Down
6 changes: 6 additions & 0 deletions src/rules/spec/ruby/__snapshots__/component.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ exports[`ruby (component) > should match everything 1`] = `
"aws",
"aws.dynamodb",
"aws.ec2",
"aws.elasticache",
"aws.glacier",
"aws.lambda",
"aws.rds",
Expand Down Expand Up @@ -98,6 +99,11 @@ exports[`ruby (component) > should match everything 2`] = `
"aws-sdk-ec2",
"1.0.0",
],
[
"ruby",
"aws-sdk-elasticache",
"1.0.0",
],
[
"ruby",
"aws-sdk-elasticsearchservice",
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 @@ -7,6 +7,7 @@ exports[`rust (component) > should match everything 1`] = `
"aws",
"aws.dynamodb",
"aws.ec2",
"aws.elasticache",
"aws.glacier",
"aws.lambda",
"aws.rds",
Expand Down Expand Up @@ -75,6 +76,11 @@ exports[`rust (component) > should match everything 2`] = `
"aws-sdk-ec2",
"1.0.0",
],
[
"rust",
"aws-sdk-elasticache",
"1.0.0",
],
[
"rust",
"aws-sdk-elasticsearch",
Expand Down
1 change: 1 addition & 0 deletions src/types/techs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export type AllowedKeys =
| 'auth0'
| 'aws.dynamodb'
| 'aws.ec2'
| 'aws.elasticache'
| 'aws.glacier'
| 'aws.lambda'
| 'aws.rds'
Expand Down

0 comments on commit 4f1ab2f

Please sign in to comment.