Skip to content

Commit

Permalink
fix(rules): add Scaleway Redis
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel committed Oct 21, 2023
1 parent a18300c commit cdc3e4b
Show file tree
Hide file tree
Showing 5 changed files with 14 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 @@ -314,6 +314,7 @@ exports[`all > should match everything 1`] = `
"sas",
"scaleway",
"scaleway.database",
"scaleway.redis",
"scoutapm",
"scss",
"sendgrid",
Expand Down
1 change: 1 addition & 0 deletions src/rules/db/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ import './redis.js';
import './replit.database.js';
import './replit.postgres.js';
import './scaleway.database.js';
import './scaleway.redis.js';
import './snowflake.js';
import './sqlite.js';
import './supabase.postgres.js';
Expand Down
10 changes: 10 additions & 0 deletions src/rules/db/scaleway.redis.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { register } from '../../register.js';

register({
tech: 'scaleway.redis',
name: 'Scaleway Redis',
type: 'db',
dependencies: [
{ type: 'terraform.resource', name: 'scaleway_redis_cluster' },
],
});
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ exports[`terraform (resource) > should match everything 1`] = `
"qovery.database",
"scaleway",
"scaleway.database",
"scaleway.redis",
"terraform",
]
`;
Expand Down
1 change: 1 addition & 0 deletions src/types/techs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,7 @@ export type AllowedKeys =
| 'sap'
| 'sas'
| 'scaleway.database'
| 'scaleway.redis'
| 'scaleway'
| 'scoutapm'
| 'scss'
Expand Down

0 comments on commit cdc3e4b

Please sign in to comment.