question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Get partition name from region

See original GitHub issue

It would be great if there’s a method that returns the partition name (e.g., aws, aws-cn, etc…) given the region (e.g., us-east-1):

def get_partition_name(region):

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:6
  • Comments:12 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ferruzzicommented, May 10, 2021

+1, I’d love to see this merged as well. We shouldn’t be hardcoding partitions and it’s silly to have to keep re-implementing a helper method for this.

0reactions
github-actions[bot]commented, Oct 27, 2021

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.

Read more comments on GitHub >

github_iconTop Results From Across the Web

SHOW PARTITIONS | CockroachDB Docs
Use the SHOW PARTITIONS statement to list details about existing partitions.
Read more >
Module: Aws::Partitions — AWS SDK for Ruby V3
A Partition is divided up into one or more regions. For example, the "aws" partition contains, "us-east-1", "us-west-1", etc. You can get a...
Read more >
Finding partition name based on HIGH_VALUE using TBL ...
This article presents how to convert HIGH_VALUE to (sub)partition name. HIGH_VALUE is column which you can find in ...
Read more >
About Renaming Partitions and Subpartitions
All partitioning methods support the FOR( value ) method to identify a partition. You can use this method to rename a system-generated partition...
Read more >
get-partitions — AWS CLI 2.9.6 Command Reference
Retrieves information about the partitions in a table. ... get-partitions [--catalog-id <value>] --database-name <value> --table-name ... The region to use.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found