diff --git a/src/rules/db/aws.elasticache.ts b/src/rules/db/aws.elasticache.ts new file mode 100644 index 00000000..f4fa6be9 --- /dev/null +++ b/src/rules/db/aws.elasticache.ts @@ -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' }, + ], +}); diff --git a/src/rules/db/index.ts b/src/rules/db/index.ts index 39b20d88..2b665550 100644 --- a/src/rules/db/index.ts +++ b/src/rules/db/index.ts @@ -1,4 +1,5 @@ import './aws.dynamodb.js'; +import './aws.elasticache.js'; import './aws.rds.js'; import './cassandra.js'; import './cockroachdb.js'; diff --git a/src/rules/spec/nodejs/__snapshots__/component.test.ts.snap b/src/rules/spec/nodejs/__snapshots__/component.test.ts.snap index 527ea182..e672cae7 100644 --- a/src/rules/spec/nodejs/__snapshots__/component.test.ts.snap +++ b/src/rules/spec/nodejs/__snapshots__/component.test.ts.snap @@ -8,6 +8,7 @@ exports[`npm > should match everything 1`] = ` "aws", "aws.dynamodb", "aws.ec2", + "aws.elasticache", "aws.glacier", "aws.lambda", "aws.rds", @@ -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", diff --git a/src/rules/spec/ruby/__snapshots__/component.test.ts.snap b/src/rules/spec/ruby/__snapshots__/component.test.ts.snap index a8eeb80f..20efe8c9 100644 --- a/src/rules/spec/ruby/__snapshots__/component.test.ts.snap +++ b/src/rules/spec/ruby/__snapshots__/component.test.ts.snap @@ -7,6 +7,7 @@ exports[`ruby (component) > should match everything 1`] = ` "aws", "aws.dynamodb", "aws.ec2", + "aws.elasticache", "aws.glacier", "aws.lambda", "aws.rds", @@ -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", diff --git a/src/rules/spec/rust/__snapshots__/component.test.ts.snap b/src/rules/spec/rust/__snapshots__/component.test.ts.snap index 0f9e897d..567669b9 100644 --- a/src/rules/spec/rust/__snapshots__/component.test.ts.snap +++ b/src/rules/spec/rust/__snapshots__/component.test.ts.snap @@ -7,6 +7,7 @@ exports[`rust (component) > should match everything 1`] = ` "aws", "aws.dynamodb", "aws.ec2", + "aws.elasticache", "aws.glacier", "aws.lambda", "aws.rds", @@ -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", diff --git a/src/types/techs.ts b/src/types/techs.ts index dc117157..01d84913 100644 --- a/src/types/techs.ts +++ b/src/types/techs.ts @@ -20,6 +20,7 @@ export type AllowedKeys = | 'auth0' | 'aws.dynamodb' | 'aws.ec2' + | 'aws.elasticache' | 'aws.glacier' | 'aws.lambda' | 'aws.rds'