Skip to content

Commit

Permalink
add elasticstack
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel committed May 2, 2023
1 parent 0846b85 commit 83049b4
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions TODO.todo
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ Terraform:
✔ oracle cloud @done(23-05-02 11:45)
- ???
✔ Mongo DB Atlas @done(23-05-02 12:09)
✔ Elastic stack @done(23-05-02 12:13)


Prisma:
Expand Down
1 change: 1 addition & 0 deletions src/common/techs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export const list: TechItem[] = [
{ key: 'docker', name: 'Docker', type: 'tool' },
{ key: 'elasticloud', name: 'Elastic Cloud', type: 'sass' },
{ key: 'elasticsearch', name: 'Elasticsearch', type: 'db' },
{ key: 'elasticstack', name: 'ElasticStack', type: 'hosting' },
{ key: 'elixir', name: 'Elixir', type: 'language' },
{ key: 'esbuild', name: 'Esbuild', type: 'tool' },
{ key: 'eslint', name: 'Eslint', type: 'tool' },
Expand Down
4 changes: 4 additions & 0 deletions src/rules/db/elasticsearch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,9 @@ register({
dependencies: [
{ type: 'npm', name: '@elastic/elasticsearch' },
{ type: 'docker', name: /elasticsearch/, example: 'elasticsearch:0.0.0' },
{
type: 'terraform',
name: 'registry.terraform.io/phillbaker/elasticsearch',
},
],
});
8 changes: 8 additions & 0 deletions src/rules/hosting/elasticstack.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { register } from '../../rules';

register({
tech: 'elasticstack',
dependencies: [
{ type: 'terraform', name: 'registry.terraform.io/elastic/elasticstack' },
],
});
1 change: 1 addition & 0 deletions src/rules/hosting/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import './alibabacloud';
import './aws';
import './azure';
import './elasticstack';
import './expodev';
import './flyio';
import './gcp';
Expand Down
2 changes: 2 additions & 0 deletions src/rules/spec/terraform/dependencies.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ describe('npm', () => {
'alibabacloud',
'aws',
'azure',
'elasticsearch',
'elasticstack',
'gcp',
'kubernetes',
'mongodbatlas',
Expand Down
1 change: 1 addition & 0 deletions src/types/techs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export type AllowedKeys =
| 'docker'
| 'elasticloud'
| 'elasticsearch'
| 'elasticstack'
| 'elixir'
| 'esbuild'
| 'eslint'
Expand Down

0 comments on commit 83049b4

Please sign in to comment.