Skip to content

Commit

Permalink
fix(rules): add AWS.RDS
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel committed Aug 21, 2023
1 parent bd878dc commit 53a4158
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/rules/db/aws.rds.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { register } from '../../register.js';

register({
tech: 'aws.rds',
name: 'RDS',
type: 'db',
dependencies: [
{ type: 'npm', name: '@aws-sdk/client-rds' },
{ type: 'npm', name: '@aws-sdk/middleware-sdk-rds' },
{ type: 'rust', name: 'aws-sdk-rds' },
{ type: 'ruby', name: 'aws-sdk-rds' },
],
});
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.rds.js';
import './cassandra.js';
import './cockroachdb.js';
import './couchbase.js';
Expand Down
1 change: 1 addition & 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.rds",
"aws.s3",
"bootstrap",
"browserstack",
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 @@ -12,6 +12,7 @@ Set {
"zookeeper",
"aws",
"aws.dynamodb",
"aws.rds",
"couchbase",
"elasticsearch",
"gcp.bigquery",
Expand Down Expand Up @@ -98,6 +99,11 @@ exports[`ruby (component) > should match everything 2`] = `
"aws-sdk-elasticsearchservice",
"1.0.0",
],
[
"ruby",
"aws-sdk-rds",
"1.0.0",
],
[
"ruby",
"aws-sdk-s3",
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 @@ -5,6 +5,7 @@ Set {
"zookeeper",
"aws",
"aws.dynamodb",
"aws.rds",
"cassandra",
"couchbase",
"elasticsearch",
Expand Down Expand Up @@ -75,6 +76,11 @@ exports[`rust (component) > should match everything 2`] = `
"aws-sdk-elasticsearch",
"1.0.0",
],
[
"rust",
"aws-sdk-rds",
"1.0.0",
],
[
"rust",
"aws-sdk-s3",
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.rds'
| 'aws.s3'
| 'aws'
| 'azure.ci'
Expand Down

0 comments on commit 53a4158

Please sign in to comment.