Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update categories #22

Merged
merged 1 commit into from
Jun 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 38 additions & 3 deletions plugins/infrawallet-backend/seeds/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,13 @@ exports.seed = async knex => {
category: 'Storage',
cloud_service_names: JSON.stringify(['Storage']),
},
{
provider: 'azure',
category: 'Front-End Web & Mobile',
cloud_service_names: JSON.stringify([
'Azure Maps',
]),
},
{
provider: 'aws',
category: 'Analytics',
Expand All @@ -120,6 +127,7 @@ exports.seed = async knex => {
'Amazon API Gateway',
'Amazon Simple Notification Service',
'Amazon Simple Queue Service',
'AWS Step Functions',
]),
},
{
Expand All @@ -141,7 +149,8 @@ exports.seed = async knex => {
category: 'Containers',
cloud_service_names: JSON.stringify([
'Amazon Elastic Container Service for Kubernetes',
'Amazon Elastic Container Registry (ECR)',
'Amazon Elastic Container Service',
'Amazon EC2 Container Registry (ECR)',
]),
},
{
Expand All @@ -158,27 +167,38 @@ exports.seed = async knex => {
{
provider: 'aws',
category: 'Developer Tools',
cloud_service_names: JSON.stringify(['AWS CloudShell', 'AWS X-Ray']),
cloud_service_names: JSON.stringify([
'AWS CloudShell',
'AWS CodeArtifact',
'AWS X-Ray',
]),
},
{
provider: 'aws',
category: 'Internet of Things',
cloud_service_names: JSON.stringify(['AWS IoT']),
cloud_service_names: JSON.stringify([
'AWS IoT',
'AWS IoT Device Defender',
'AWS IoT Device Management',
]),
},
{
provider: 'aws',
category: 'Management & Governance',
cloud_service_names: JSON.stringify([
'AmazonCloudWatch',
'CloudWatch Events',
'AWS CloudTrail',
'AWS Config',
'AWS Service Catalog',
'AWS Systems Manager',
]),
},
{
provider: 'aws',
category: 'Migration',
cloud_service_names: JSON.stringify([
'AWS Database Migration Service',
'AWS Migration Hub Refactor Spaces',
]),
},
Expand All @@ -189,13 +209,18 @@ exports.seed = async knex => {
'Amazon Elastic Load Balancing',
'Amazon Route 53',
'Amazon Virtual Private Cloud',
'AWS Global Accelerator',
]),
},
{
provider: 'aws',
category: 'Security, Identity, & Compliance',
cloud_service_names: JSON.stringify([
'Amazon Cognito',
'Amazon GuardDuty',
'Amazon Inspector',
'Amazon Verified Permissions',
'AWS Certificate Manager',
'AWS Key Management Service',
'AWS Secrets Manager',
'AWS Security Hub',
Expand All @@ -206,9 +231,19 @@ exports.seed = async knex => {
provider: 'aws',
category: 'Storage',
cloud_service_names: JSON.stringify([
'Amazon Elastic File System',
'Amazon Glacier',
'Amazon Simple Storage Service',
]),
},
{
provider: 'aws',
category: 'Front-End Web & Mobile',
cloud_service_names: JSON.stringify([
'Amazon Location Service',
'Amazon Simple Email Service',
'AWS Device Farm',
]),
},
]);
};
16 changes: 14 additions & 2 deletions plugins/infrawallet-backend/src/service/AwsClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,26 @@ export class AwsClient implements InfraWalletApi {
['Simple Storage Service', 'S3 (Simple Storage Service)'],
[
'Managed Streaming for Apache Kafka',
'MSK (Managed Streaming for Apache Kafka)',
'MSK (Managed Streaming for Apache Kafka)'
],
[
'Elastic Container Service for Kubernetes',
'EKS (Elastic Container Service for Kubernetes)',
'EKS (Elastic Container Service for Kubernetes)'
],
[
'Elastic Container Service',
'ECS (Elastic Container Service)'
],
[
'EC2 Container Registry (ECR)',
'ECR (Elastic Container Registry)'
],
['Simple Queue Service', 'SQS (Simple Queue Service)'],
['Simple Notification Service', 'SNS (Simple Notification Service)'],
[
'Database Migration Service',
'DMS (Database Migration Service)'
]
]);

for (const prefix of prefixes) {
Expand Down