Skip to content

Commit

Permalink
fix(rules): add AWS EKS
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel committed Sep 18, 2023
1 parent 582da18 commit b637333
Show file tree
Hide file tree
Showing 9 changed files with 52 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 @@ -34,6 +34,7 @@ exports[`all > should match everything 1`] = `
"aws.ec2",
"aws.ecs",
"aws.efs",
"aws.eks",
"aws.elasticache",
"aws.fargate",
"aws.glacier",
Expand Down
19 changes: 19 additions & 0 deletions src/rules/hosting/aws.eks.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { register } from '../../register.js';

register({
tech: 'aws.eks',
name: 'AWS EKS',
type: 'hosting',
dependencies: [
{ type: 'npm', name: '@aws-cdk/aws-eks' },
{ type: 'npm', name: '@aws-sdk/client-eks' },
{ type: 'rust', name: 'aws-sdk-eks' },
{ type: 'ruby', name: 'aws-sdk-eks' },
{ type: 'golang', name: 'github.com/aws/aws-sdk-go-v2/service/eks' },
{
type: 'terraform.resource',
name: /^aws_eks_/,
example: 'aws_eks_cluster',
},
],
});
1 change: 1 addition & 0 deletions src/rules/hosting/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import './alibabacloud.js';
import './aws.amplify_hosting.js';
import './aws.ec2.js';
import './aws.ecs.js';
import './aws.eks.js';
import './aws.fargate.js';
import './aws.js';
import './aws.lambda.js';
Expand Down
6 changes: 6 additions & 0 deletions src/rules/spec/golang/__snapshots__/lockfile.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ exports[`golang (lockfile) > should match everything 1`] = `
"aws.ec2",
"aws.ecs",
"aws.efs",
"aws.eks",
"aws.elasticache",
"aws.glacier",
"aws.lambda",
Expand Down Expand Up @@ -267,6 +268,11 @@ exports[`golang (lockfile) > should match everything 2`] = `
"github.com/aws/aws-sdk-go-v2/service/efs",
"v1.0.0",
],
[
"golang",
"github.com/aws/aws-sdk-go-v2/service/eks",
"v1.0.0",
],
[
"golang",
"github.com/aws/aws-sdk-go-v2/service/elasticache",
Expand Down
11 changes: 11 additions & 0 deletions src/rules/spec/nodejs/__snapshots__/component.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ exports[`npm > should match everything 1`] = `
"aws.ec2",
"aws.ecs",
"aws.efs",
"aws.eks",
"aws.elasticache",
"aws.glacier",
"aws.lambda",
Expand Down Expand Up @@ -257,6 +258,11 @@ exports[`npm > should match everything 2`] = `
"@aws-cdk/aws-efs",
"0.0.0",
],
[
"npm",
"@aws-cdk/aws-eks",
"0.0.0",
],
[
"npm",
"@aws-cdk/aws-elasticache",
Expand Down Expand Up @@ -367,6 +373,11 @@ exports[`npm > should match everything 2`] = `
"@aws-sdk/client-efs",
"0.0.0",
],
[
"npm",
"@aws-sdk/client-eks",
"0.0.0",
],
[
"npm",
"@aws-sdk/client-elasticache",
Expand Down
6 changes: 6 additions & 0 deletions src/rules/spec/ruby/__snapshots__/lockfile.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ exports[`ruby (component) > should match everything 1`] = `
"aws.ec2",
"aws.ecs",
"aws.efs",
"aws.eks",
"aws.elasticache",
"aws.glacier",
"aws.lambda",
Expand Down Expand Up @@ -188,6 +189,11 @@ exports[`ruby (component) > should match everything 2`] = `
"aws-sdk-efs",
"1.0.0",
],
[
"ruby",
"aws-sdk-eks",
"1.0.0",
],
[
"ruby",
"aws-sdk-elasticache",
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 @@ -16,6 +16,7 @@ exports[`rust (component) > should match everything 1`] = `
"aws.ec2",
"aws.ecs",
"aws.efs",
"aws.eks",
"aws.elasticache",
"aws.glacier",
"aws.lambda",
Expand Down Expand Up @@ -133,6 +134,11 @@ exports[`rust (component) > should match everything 2`] = `
"aws-sdk-efs",
"1.0.0",
],
[
"rust",
"aws-sdk-eks",
"1.0.0",
],
[
"rust",
"aws-sdk-elasticache",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ exports[`terraform (resource) > should match everything 1`] = `
"aws.ec2",
"aws.ecs",
"aws.efs",
"aws.eks",
"aws.elasticache",
"aws.glacier",
"aws.lambda",
Expand Down
1 change: 1 addition & 0 deletions src/types/techs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ export type AllowedKeys =
| 'aws.ec2'
| 'aws.ecs'
| 'aws.efs'
| 'aws.eks'
| 'aws.elasticache'
| 'aws.fargate'
| 'aws.glacier'
Expand Down

0 comments on commit b637333

Please sign in to comment.