Skip to content

Commit

Permalink
added support for appending region query parameter to services/sub-se…
Browse files Browse the repository at this point in the history
…rvices/entities to minimize redirects (results in substantial speedup in some services)
  • Loading branch information
rkoval committed Aug 4, 2021
1 parent 0fd54b5 commit 64761e3
Show file tree
Hide file tree
Showing 107 changed files with 704 additions and 291 deletions.
83 changes: 49 additions & 34 deletions console-services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,20 +64,20 @@
- id: budgets
name: Budgets
description: Set Custom Budgets and Receive Alerts
url: /billing/home#/budgets#/home
url: /billing/home#/budgets

- id: acm
name: Certificate Manager
short_name: ACM
description: Provision, Manage, and Deploy SSL/TLS Certificates
url: /acm/home
url: "/acm/home#/"
sub_services:
- id: certificatemanager
name: Certificate manager
url: /acm/home
url: "/acm/home#/"
- id: privatecas
name: Private certificate authorities
url: '/acm-pca/home'
url: "/acm-pca/home#/"

- id: chime
name: Chime
Expand All @@ -93,7 +93,7 @@
- id: cloudformation
name: CloudFormation
description: Create and Manage Resources with Templates
url: /cloudformation/home
url: '/cloudformation/home#/stacks'
sub_services:
- id: stacks
name: Stacks
Expand All @@ -111,45 +111,45 @@
- id: cloudfront
name: CloudFront
description: Global Content Delivery Network
url: /cloudfront/home
url: '/cloudfront/home#'
has_global_region: true
sub_services:
- id: distributions
name: Distributions
url: '/cloudfront/home?#'
url: '/cloudfront/home#'
- id: policies
name: Policies
url: '/cloudfront/v2/home#/policies'
- id: cachestatistics
name: Cache statistics
url: '/cloudfront/home?#cache_stat_reports:'
url: '/cloudfront/home#cache_stat_reports:'
- id: monitoring
name: Monitoring
url: '/cloudfront/v2/home#/monitoring'
- id: alarms
name: Alarms
url: '/cloudfront/home?#alarms:'
url: '/cloudfront/home#alarms:'
- id: popularobjects
name: Popular objects
url: '/cloudfront/home?#popular_urls:'
url: '/cloudfront/home#popular_urls:'
- id: referrers
name: Top referrers
url: '/cloudfront/home?#referers_report:'
url: '/cloudfront/home#referers_report:'
- id: usage
name: Usage
url: '/cloudfront/home?#usage_reports:'
url: '/cloudfront/home#usage_reports:'
- id: viewers
name: Viewers
url: '/cloudfront/home?#viewers_reports:'
url: '/cloudfront/home#viewers_reports:'
- id: oai
name: Origin access identity
url: '/cloudfront/home?#oai:'
url: '/cloudfront/home#oai:'
- id: publickey
name: Public key
url: '/cloudfront/home?#publickey:'
url: '/cloudfront/home#publickey:'
- id: fle
name: Field-level encryption
url: '/cloudfront/home?#fle:'
url: '/cloudfront/home#fle:'

- id: cloudhsm
name: CloudHSM
Expand All @@ -174,11 +174,11 @@
- id: cloudwatch
name: CloudWatch
description: Monitor Resources and Applications
url: /cloudwatch/home
url: '/cloudwatch/home#'
sub_services:
- id: home
name: Home
url: '/cloudwatch/home#cw:dashboard=Home'
url: '/cloudwatch/home#'
- id: dashboards
name: Dashboards
url: '/cloudwatch/home#dashboards:'
Expand Down Expand Up @@ -366,8 +366,11 @@
name: Elastic Cloud Compute
short_name: EC2
description: Virtual Servers in the Cloud
url: /ec2/home
url: '/ec2/home#Home:'
sub_services:
- id: dashboard
name: Dashboard
url: '/ec2/home#Home:'
- id: events
name: Events
url: '/ec2/home#Events:'
Expand Down Expand Up @@ -448,14 +451,14 @@
name: Elastic Container Registry
short_name: ECR
description: Fully-managed Docker container registry
url: /ecr/repositories
url: "/ecr/repositories#"
sub_services:
- id: repositories
name: Repositories
url: /ecr/repositories
url: "/ecr/repositories#"
- id: registries
name: Registries
url: /ecr/registries
url: "/ecr/registries#"
- id: publicgallery
name: Public gallery
url: https://gallery.ecr.aws/
Expand Down Expand Up @@ -505,11 +508,11 @@
- id: elasticache
name: ElastiCache
description: In-Memory Cache
url: /elasticache/home
url: "/elasticache/home#"
sub_services:
- id: home
name: Home
url: "/elasticache/home"
- id: dashboard
name: Dashboard
url: "/elasticache/home#"
- id: memcached
name: Memcached
url: "/elasticache/home#memcached:"
Expand Down Expand Up @@ -550,14 +553,17 @@
- id: elasticbeanstalk
name: Elastic Beanstalk
description: Run and Manage Web Apps
url: /elasticbeanstalk/home
url: "/elasticbeanstalk/home#/environments"
sub_services:
- id: environments
name: Environments
url: "/elasticbeanstalk/home#/environments"
- id: applications
name: Applications
url: "/elasticbeanstalk/home#/applications"
- id: changehistory
name: Change history
url: "/elasticbeanstalk/home/changeHistory"

- id: ess
name: Elasticsearch Service
Expand Down Expand Up @@ -631,7 +637,7 @@
short_name: IAM
description: Manage User Access and Encryption Keys
has_global_region: true
url: /iam/home
url: "/iam/home#/home"
sub_services:
- id: dashboard
name: Dashboard
Expand Down Expand Up @@ -667,7 +673,7 @@
- id: accessanalyzer
name: Access Analyzer
description: Monitor access to resources
url: "/access-analyzer/home#/analyzers"
url: "/access-analyzer/home#/rules"
extra_search_terms:
- iam
sub_services:
Expand Down Expand Up @@ -768,7 +774,7 @@
- id: lambda
name: Lambda
description: Run Code without Thinking about Servers
url: /lambda/home
url: "/lambda/home#/discover"
sub_services:
- id: dashboard
name: Dashboard
Expand Down Expand Up @@ -902,8 +908,11 @@
name: Relational Database Service
short_name: RDS
description: Managed Relational Database Service
url: /rds/home
url: "/rds/home#"
sub_services:
- id: dashboard
name: Dashboard
url: "/rds/home#"
- id: databases
name: Databases
url: "/rds/home#databases:"
Expand Down Expand Up @@ -1023,8 +1032,11 @@
name: Route 53
description: Scalable DNS and Domain Name Registration
has_global_region: true
url: /route53/home
url: "/route53/v2/home#Dashboard"
sub_services:
- id: dashboard
name: "Dashboard"
url: "/route53/v2/home#Dashboard"
- id: hostedzones
name: "Hosted zones"
url: "/route53/v2/hostedzones#"
Expand Down Expand Up @@ -1130,8 +1142,11 @@
name: Simple Notification Service
short_name: SNS
description: SNS Pub/Sub, Mobile Push and SMS
url: /sns/home
url: "/sns/v3/home#/dashboard"
sub_services:
- id: dashboard
name: Dashboard
url: "/sns/v3/home#/dashboard"
- id: topics
name: Topics
url: "/sns/v3/home#/topics"
Expand Down Expand Up @@ -1317,7 +1332,7 @@
short_name: WAF
description: Protects Against DDoS Attacks and Malicious Web Traffic
has_global_region: true
url: /wafv2/homev2
url: "/wafv2/homev2/web-acls"
sub_services:
- id: webacls
name: Web ACLs
Expand Down
4 changes: 2 additions & 2 deletions generators/searcher/file_writers.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,10 @@ func (s {{ .StructName }}) addToWorkflow(wf *aw.Workflow, searchArgs searchutil.
subtitleArray = util.AppendString(subtitleArray, entity.TODO)
subtitle := strings.Join(subtitleArray, " – ")
path := fmt.Sprintf("/{{ .ServiceLower }}/{{ .EntityLowerPlural }}/?region=%s", searchArgs.Cfg.Region)
path := fmt.Sprintf("/{{ .ServiceLower }}/{{ .EntityLowerPlural }}", searchArgs.TODO)
item := util.NewURLItem(wf, title).
Subtitle(subtitle).
Arg(util.ConstructAWSConsoleUrl(path, searchArgs.Cfg.Region)).
Arg(util.ConstructAWSConsoleUrl(path, searchArgs.GetRegion())).
Icon(awsworkflow.GetImageIcon("{{ .ServiceLower }}")).
Valid(true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
Name: (string) (len=17) "Elastic Beanstalk",
ShortName: (string) "",
Description: (string) (len=23) "Run and Manage Web Apps",
Url: (string) (len=22) "/elasticbeanstalk/home",
Url: (string) (len=36) "/elasticbeanstalk/home#/environments",
HomeID: (string) "",
ExtraSearchTerms: ([]string) <nil>,
SubServices: ([]awsworkflow.AwsService) (len=2) {
SubServices: ([]awsworkflow.AwsService) (len=3) {
(awsworkflow.AwsService) {
Id: (string) (len=12) "environments",
Name: (string) (len=12) "Environments",
Expand All @@ -30,6 +30,17 @@
ExtraSearchTerms: ([]string) <nil>,
SubServices: ([]awsworkflow.AwsService) <nil>,
HasGlobalRegion: (bool) false
},
(awsworkflow.AwsService) {
Id: (string) (len=13) "changehistory",
Name: (string) (len=14) "Change history",
ShortName: (string) "",
Description: (string) "",
Url: (string) (len=36) "/elasticbeanstalk/home/changeHistory",
HomeID: (string) "",
ExtraSearchTerms: ([]string) <nil>,
SubServices: ([]awsworkflow.AwsService) <nil>,
HasGlobalRegion: (bool) false
}
},
HasGlobalRegion: (bool) false
Expand Down
15 changes: 13 additions & 2 deletions parsers/.snapshots/TestParser-______elasticbeanstalk______
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
Name: (string) (len=17) "Elastic Beanstalk",
ShortName: (string) "",
Description: (string) (len=23) "Run and Manage Web Apps",
Url: (string) (len=22) "/elasticbeanstalk/home",
Url: (string) (len=36) "/elasticbeanstalk/home#/environments",
HomeID: (string) "",
ExtraSearchTerms: ([]string) <nil>,
SubServices: ([]awsworkflow.AwsService) (len=2) {
SubServices: ([]awsworkflow.AwsService) (len=3) {
(awsworkflow.AwsService) {
Id: (string) (len=12) "environments",
Name: (string) (len=12) "Environments",
Expand All @@ -30,6 +30,17 @@
ExtraSearchTerms: ([]string) <nil>,
SubServices: ([]awsworkflow.AwsService) <nil>,
HasGlobalRegion: (bool) false
},
(awsworkflow.AwsService) {
Id: (string) (len=13) "changehistory",
Name: (string) (len=14) "Change history",
ShortName: (string) "",
Description: (string) "",
Url: (string) (len=36) "/elasticbeanstalk/home/changeHistory",
HomeID: (string) "",
ExtraSearchTerms: ([]string) <nil>,
SubServices: ([]awsworkflow.AwsService) <nil>,
HasGlobalRegion: (bool) false
}
},
HasGlobalRegion: (bool) false
Expand Down
15 changes: 13 additions & 2 deletions parsers/.snapshots/TestParser-_elasticbeanstalk
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
Name: (string) (len=17) "Elastic Beanstalk",
ShortName: (string) "",
Description: (string) (len=23) "Run and Manage Web Apps",
Url: (string) (len=22) "/elasticbeanstalk/home",
Url: (string) (len=36) "/elasticbeanstalk/home#/environments",
HomeID: (string) "",
ExtraSearchTerms: ([]string) <nil>,
SubServices: ([]awsworkflow.AwsService) (len=2) {
SubServices: ([]awsworkflow.AwsService) (len=3) {
(awsworkflow.AwsService) {
Id: (string) (len=12) "environments",
Name: (string) (len=12) "Environments",
Expand All @@ -30,6 +30,17 @@
ExtraSearchTerms: ([]string) <nil>,
SubServices: ([]awsworkflow.AwsService) <nil>,
HasGlobalRegion: (bool) false
},
(awsworkflow.AwsService) {
Id: (string) (len=13) "changehistory",
Name: (string) (len=14) "Change history",
ShortName: (string) "",
Description: (string) "",
Url: (string) (len=36) "/elasticbeanstalk/home/changeHistory",
HomeID: (string) "",
ExtraSearchTerms: ([]string) <nil>,
SubServices: ([]awsworkflow.AwsService) <nil>,
HasGlobalRegion: (bool) false
}
},
HasGlobalRegion: (bool) false
Expand Down
15 changes: 13 additions & 2 deletions parsers/.snapshots/TestParser-_elasticbeanstalk_
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
Name: (string) (len=17) "Elastic Beanstalk",
ShortName: (string) "",
Description: (string) (len=23) "Run and Manage Web Apps",
Url: (string) (len=22) "/elasticbeanstalk/home",
Url: (string) (len=36) "/elasticbeanstalk/home#/environments",
HomeID: (string) "",
ExtraSearchTerms: ([]string) <nil>,
SubServices: ([]awsworkflow.AwsService) (len=2) {
SubServices: ([]awsworkflow.AwsService) (len=3) {
(awsworkflow.AwsService) {
Id: (string) (len=12) "environments",
Name: (string) (len=12) "Environments",
Expand All @@ -30,6 +30,17 @@
ExtraSearchTerms: ([]string) <nil>,
SubServices: ([]awsworkflow.AwsService) <nil>,
HasGlobalRegion: (bool) false
},
(awsworkflow.AwsService) {
Id: (string) (len=13) "changehistory",
Name: (string) (len=14) "Change history",
ShortName: (string) "",
Description: (string) "",
Url: (string) (len=36) "/elasticbeanstalk/home/changeHistory",
HomeID: (string) "",
ExtraSearchTerms: ([]string) <nil>,
SubServices: ([]awsworkflow.AwsService) <nil>,
HasGlobalRegion: (bool) false
}
},
HasGlobalRegion: (bool) false
Expand Down
Loading

0 comments on commit 64761e3

Please sign in to comment.