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.
See examples to learn how to use aws-region-nearby with different SDKs and Cloudflare Workers.
Many thanks to @tobilg for providing the AWS region coordinates.
Add the crate as a dependency to your Cargo.toml
:
toml
[dependencies]
aws-region-nearby = "=0.0.5-alpha"
Now you can start finding AWS regions.
Copyright (c) 2021 Mathias Lafeldt
Licensed under the Apache License, Version 2.0 or the MIT license, at your option.