aws-region-nearby

Crates.ioaws-region-nearby
lib.rsaws-region-nearby
version0.2.3
sourcesrc
created_at2021-12-15 21:30:41.84137
updated_at2022-12-23 17:22:16.582581
descriptionFind the nearest AWS region to a given location
homepagehttps://crates.io/crates/aws-region-nearby
repositoryhttps://github.com/mlafeldt/aws-region-nearby
max_upload_size
id498639
size46,709
Mathias Lafeldt (mlafeldt)

documentation

https://docs.rs/aws-region-nearby/

README

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-2022 Mathias Lafeldt

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

Commit count: 106

cargo fmt