#aws-region #aws #cloudflare #deno #edge

aws-region-nearby

Find the nearest AWS region to a given location

13 releases

0.2.3 Dec 23, 2022
0.2.2 Oct 2, 2022
0.2.1 Sep 18, 2022
0.1.2 Jul 1, 2022
0.0.3-alpha Dec 30, 2021

#366 in WebAssembly

Download history 1773/week @ 2024-03-13 1248/week @ 2024-03-20 1342/week @ 2024-03-27 2397/week @ 2024-04-03 1646/week @ 2024-04-10 2765/week @ 2024-04-17 1514/week @ 2024-04-24 1729/week @ 2024-05-01 1330/week @ 2024-05-08 1848/week @ 2024-05-15 1912/week @ 2024-05-22 2041/week @ 2024-05-29 1384/week @ 2024-06-05 1766/week @ 2024-06-12 1000/week @ 2024-06-19 910/week @ 2024-06-26

5,410 downloads per month

MIT/Apache

35KB
681 lines

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.

Dependencies

~0.5–1MB
~23K SLoC