mirror of
https://git.proxmox.com/git/rustc
synced 2025-10-25 20:48:54 +00:00
15 lines
382 B
Rust
15 lines
382 B
Rust
use anyhow::Result;
|
|
|
|
use curl::easy::Easy;
|
|
|
|
fn main() -> Result<()> {
|
|
let mut handle = Easy::new();
|
|
handle.verbose(true)?;
|
|
handle.url("https://ec2.us-east-1.amazonaws.com/?Action=DescribeRegions&Version=2013-10-15")?;
|
|
handle.aws_sigv4("aws:amz")?;
|
|
handle.username("myAccessKeyId")?;
|
|
handle.password("mySecretAccessKey")?;
|
|
handle.perform()?;
|
|
Ok(())
|
|
}
|