Crates.io | aws-region-nearby |
lib.rs | aws-region-nearby |
version | 0.2.3 |
source | src |
created_at | 2021-12-15 21:30:41.84137 |
updated_at | 2022-12-23 17:22:16.582581 |
description | Find the nearest AWS region to a given location |
homepage | https://crates.io/crates/aws-region-nearby |
repository | https://github.com/mlafeldt/aws-region-nearby |
max_upload_size | |
id | 498639 |
size | 46,709 |
A Rust library to find the nearest AWS region to a given location.
Especially useful when you run code at the edge and want fast access to regional AWS services, e.g. Cloudflare Workers accessing DynamoDB global tables.
Check out the examples to learn how to use aws-region-nearby with different AWS SDKs, Cloudflare Workers, and Deno Deploy. The included infra code will deploy a replicated DynamoDB table for testing.
Many thanks to @tobilg for providing the original AWS region coordinates.
Add the crate as a dependency to your Cargo.toml
:
[dependencies]
aws-region-nearby = "0.2"
Now you can start finding AWS regions.
Copyright (c) 2021-2022 Mathias Lafeldt
Licensed under the Apache License, Version 2.0 or the MIT license, at your option.