Skip to content

Commit

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

register({
tech: 'scaleway.secretmanager',
name: 'Scaleway Secret Manager',
type: 'db',
dependencies: [{ type: 'terraform.resource', name: 'scaleway_secret' }],
});
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ exports[`terraform (resource) > should match everything 1`] = `
"scaleway",
"scaleway.database",
"scaleway.redis",
"scaleway.secretmanager",
"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 @@ -334,6 +334,7 @@ export type AllowedKeys =
| 'sas'
| 'scaleway.database'
| 'scaleway.redis'
| 'scaleway.secretmanager'
| 'scaleway'
| 'scoutapm'
| 'scss'
Expand Down

0 comments on commit d9e8207

Please sign in to comment.