Skip to content

Commit

Permalink
fix(rules): add Scaleway Storage
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel committed Oct 21, 2023
1 parent befbcce commit 431fdc8
Show file tree
Hide file tree
Showing 5 changed files with 15 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 @@ -317,6 +317,7 @@ exports[`all > should match everything 1`] = `
"scaleway.documentdb",
"scaleway.redis",
"scaleway.secretmanager",
"scaleway.storage",
"scoutapm",
"scss",
"sendgrid",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ exports[`terraform (resource) > should match everything 1`] = `
"scaleway.documentdb",
"scaleway.redis",
"scaleway.secretmanager",
"scaleway.storage",
"terraform",
]
`;
Expand Down
1 change: 1 addition & 0 deletions src/rules/storage/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ import './gcp.artifactregistry.js';
import './gcp.containerregistry.js';
import './gcp.gcs.js';
import './ovh.storage.js';
import './scaleway.storage.js';
import './supabase.storage.js';
11 changes: 11 additions & 0 deletions src/rules/storage/scaleway.storage.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { register } from '../../register.js';

register({
tech: 'scaleway.storage',
name: 'Scaleway Storage',
type: 'storage',
dependencies: [
{ type: 'terraform.resource', name: 'scaleway_object_bucket' },
{ type: 'terraform.resource', name: 'scaleway_object_bucket_acl' },
],
});
1 change: 1 addition & 0 deletions src/types/techs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,7 @@ export type AllowedKeys =
| 'scaleway.documentdb'
| 'scaleway.redis'
| 'scaleway.secretmanager'
| 'scaleway.storage'
| 'scaleway'
| 'scoutapm'
| 'scss'
Expand Down

0 comments on commit 431fdc8

Please sign in to comment.