Created
January 19, 2018 13:08
-
-
Save epequeno/4b8d2a4c1f156d9833097fbee424eb28 to your computer and use it in GitHub Desktop.
describe ec2 instances
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extern crate rusoto_core; | |
extern crate rusoto_ec2; | |
use rusoto_core::{default_tls_client, DefaultCredentialsProvider, Region}; | |
use rusoto_ec2::{Ec2Client, Ec2, DescribeInstancesRequest}; | |
fn main() { | |
let dispatcher = default_tls_client().unwrap(); | |
let provider = DefaultCredentialsProvider::new().unwrap(); | |
let client = Ec2Client::new(dispatcher, provider, Region::UsEast1); | |
let req = DescribeInstancesRequest::default(); | |
println!("{:?}", client.describe_instances(&req)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment