mlafeldt / aws-region-nearby

A Rust library to find the nearest AWS region to a given location

Home Page:https://crates.io/crates/aws-region-nearby

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

aws-region-nearby

Latest version Documentation CI

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.

Quickstart

Add the crate as a dependency to your Cargo.toml:

[dependencies]
aws-region-nearby = "0.2"

Now you can start finding AWS regions.

License

Copyright (c) 2021-2024 Mathias Lafeldt

Licensed under the Apache License, Version 2.0 or the MIT license, at your option.

About

A Rust library to find the nearest AWS region to a given location

https://crates.io/crates/aws-region-nearby

License:Apache License 2.0


Languages

Language:Rust 100.0%