diff --git a/tuts/001-lightsail-gs/rust/Cargo.toml b/tuts/001-lightsail-gs/rust/Cargo.toml new file mode 100644 index 0000000..2ab6368 --- /dev/null +++ b/tuts/001-lightsail-gs/rust/Cargo.toml @@ -0,0 +1,9 @@ +[package] +name = "tutorial-lightsail" +version = "0.1.0" +edition = "2021" + +[dependencies] +aws-config = { version = "1", features = ["behavior-version-latest"] } +aws-sdk-lightsail = "1" +tokio = { version = "1", features = ["full"] } diff --git a/tuts/001-lightsail-gs/rust/src/bin/scenario.rs b/tuts/001-lightsail-gs/rust/src/bin/scenario.rs new file mode 100644 index 0000000..afd7de7 --- /dev/null +++ b/tuts/001-lightsail-gs/rust/src/bin/scenario.rs @@ -0,0 +1,13 @@ +// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +// SPDX-License-Identifier: Apache-2.0 + +#[tokio::main] +async fn main() -> Result<(), Box> { + let config = aws_config::load_defaults(aws_config::BehaviorVersion::latest()).await; + let client = aws_sdk_lightsail::Client::new(&config); + println!("Running Lightsail getting started scenario..."); + // TODO: setup, interact, teardown + let _ = client; + println!("Scenario complete."); + Ok(()) +} diff --git a/tuts/001-lightsail-gs/rust/src/lib.rs b/tuts/001-lightsail-gs/rust/src/lib.rs new file mode 100644 index 0000000..011860a --- /dev/null +++ b/tuts/001-lightsail-gs/rust/src/lib.rs @@ -0,0 +1,11 @@ +// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +// SPDX-License-Identifier: Apache-2.0 + +use aws_sdk_lightsail::Client; + +// TODO: Add wrapper functions matching CLI tutorial actions + +pub async fn placeholder(client: &Client) -> Result<(), aws_sdk_lightsail::Error> { + let _ = client; + Ok(()) +} diff --git a/tuts/002-vpc-gs/rust/Cargo.toml b/tuts/002-vpc-gs/rust/Cargo.toml new file mode 100644 index 0000000..09f7aeb --- /dev/null +++ b/tuts/002-vpc-gs/rust/Cargo.toml @@ -0,0 +1,9 @@ +[package] +name = "tutorial-ec2" +version = "0.1.0" +edition = "2021" + +[dependencies] +aws-config = { version = "1", features = ["behavior-version-latest"] } +aws-sdk-ec2 = "1" +tokio = { version = "1", features = ["full"] } diff --git a/tuts/002-vpc-gs/rust/src/bin/scenario.rs b/tuts/002-vpc-gs/rust/src/bin/scenario.rs new file mode 100644 index 0000000..f71a556 --- /dev/null +++ b/tuts/002-vpc-gs/rust/src/bin/scenario.rs @@ -0,0 +1,13 @@ +// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +// SPDX-License-Identifier: Apache-2.0 + +#[tokio::main] +async fn main() -> Result<(), Box> { + let config = aws_config::load_defaults(aws_config::BehaviorVersion::latest()).await; + let client = aws_sdk_ec2::Client::new(&config); + println!("Running Ec2 getting started scenario..."); + // TODO: setup, interact, teardown + let _ = client; + println!("Scenario complete."); + Ok(()) +} diff --git a/tuts/002-vpc-gs/rust/src/lib.rs b/tuts/002-vpc-gs/rust/src/lib.rs new file mode 100644 index 0000000..a49ad37 --- /dev/null +++ b/tuts/002-vpc-gs/rust/src/lib.rs @@ -0,0 +1,11 @@ +// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +// SPDX-License-Identifier: Apache-2.0 + +use aws_sdk_ec2::Client; + +// TODO: Add wrapper functions matching CLI tutorial actions + +pub async fn placeholder(client: &Client) -> Result<(), aws_sdk_ec2::Error> { + let _ = client; + Ok(()) +} diff --git a/tuts/003-s3-gettingstarted/rust/Cargo.toml b/tuts/003-s3-gettingstarted/rust/Cargo.toml new file mode 100644 index 0000000..357af6f --- /dev/null +++ b/tuts/003-s3-gettingstarted/rust/Cargo.toml @@ -0,0 +1,9 @@ +[package] +name = "tutorial-s3" +version = "0.1.0" +edition = "2021" + +[dependencies] +aws-config = { version = "1", features = ["behavior-version-latest"] } +aws-sdk-s3 = "1" +tokio = { version = "1", features = ["full"] } diff --git a/tuts/003-s3-gettingstarted/rust/src/bin/scenario.rs b/tuts/003-s3-gettingstarted/rust/src/bin/scenario.rs new file mode 100644 index 0000000..2bdacf2 --- /dev/null +++ b/tuts/003-s3-gettingstarted/rust/src/bin/scenario.rs @@ -0,0 +1,13 @@ +// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +// SPDX-License-Identifier: Apache-2.0 + +#[tokio::main] +async fn main() -> Result<(), Box> { + let config = aws_config::load_defaults(aws_config::BehaviorVersion::latest()).await; + let client = aws_sdk_s3::Client::new(&config); + println!("Running S3 getting started scenario..."); + // TODO: setup, interact, teardown + let _ = client; + println!("Scenario complete."); + Ok(()) +} diff --git a/tuts/003-s3-gettingstarted/rust/src/lib.rs b/tuts/003-s3-gettingstarted/rust/src/lib.rs new file mode 100644 index 0000000..f3fce6e --- /dev/null +++ b/tuts/003-s3-gettingstarted/rust/src/lib.rs @@ -0,0 +1,11 @@ +// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +// SPDX-License-Identifier: Apache-2.0 + +use aws_sdk_s3::Client; + +// TODO: Add wrapper functions matching CLI tutorial actions + +pub async fn placeholder(client: &Client) -> Result<(), aws_sdk_s3::Error> { + let _ = client; + Ok(()) +} diff --git a/tuts/004-cloudmap-custom-attributes/rust/Cargo.toml b/tuts/004-cloudmap-custom-attributes/rust/Cargo.toml new file mode 100644 index 0000000..4b39ff5 --- /dev/null +++ b/tuts/004-cloudmap-custom-attributes/rust/Cargo.toml @@ -0,0 +1,9 @@ +[package] +name = "tutorial-servicediscovery" +version = "0.1.0" +edition = "2021" + +[dependencies] +aws-config = { version = "1", features = ["behavior-version-latest"] } +aws-sdk-servicediscovery = "1" +tokio = { version = "1", features = ["full"] } diff --git a/tuts/004-cloudmap-custom-attributes/rust/src/bin/scenario.rs b/tuts/004-cloudmap-custom-attributes/rust/src/bin/scenario.rs new file mode 100644 index 0000000..884c072 --- /dev/null +++ b/tuts/004-cloudmap-custom-attributes/rust/src/bin/scenario.rs @@ -0,0 +1,13 @@ +// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +// SPDX-License-Identifier: Apache-2.0 + +#[tokio::main] +async fn main() -> Result<(), Box> { + let config = aws_config::load_defaults(aws_config::BehaviorVersion::latest()).await; + let client = aws_sdk_servicediscovery::Client::new(&config); + println!("Running CloudMap getting started scenario..."); + // TODO: setup, interact, teardown + let _ = client; + println!("Scenario complete."); + Ok(()) +} diff --git a/tuts/004-cloudmap-custom-attributes/rust/src/lib.rs b/tuts/004-cloudmap-custom-attributes/rust/src/lib.rs new file mode 100644 index 0000000..9fb62ca --- /dev/null +++ b/tuts/004-cloudmap-custom-attributes/rust/src/lib.rs @@ -0,0 +1,11 @@ +// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +// SPDX-License-Identifier: Apache-2.0 + +use aws_sdk_servicediscovery::Client; + +// TODO: Add wrapper functions matching CLI tutorial actions + +pub async fn placeholder(client: &Client) -> Result<(), aws_sdk_servicediscovery::Error> { + let _ = client; + Ok(()) +} diff --git a/tuts/005-cloudfront-gettingstarted/rust/Cargo.toml b/tuts/005-cloudfront-gettingstarted/rust/Cargo.toml new file mode 100644 index 0000000..417ad6e --- /dev/null +++ b/tuts/005-cloudfront-gettingstarted/rust/Cargo.toml @@ -0,0 +1,9 @@ +[package] +name = "tutorial-cloudfront" +version = "0.1.0" +edition = "2021" + +[dependencies] +aws-config = { version = "1", features = ["behavior-version-latest"] } +aws-sdk-cloudfront = "1" +tokio = { version = "1", features = ["full"] } diff --git a/tuts/005-cloudfront-gettingstarted/rust/src/bin/scenario.rs b/tuts/005-cloudfront-gettingstarted/rust/src/bin/scenario.rs new file mode 100644 index 0000000..ba98737 --- /dev/null +++ b/tuts/005-cloudfront-gettingstarted/rust/src/bin/scenario.rs @@ -0,0 +1,13 @@ +// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +// SPDX-License-Identifier: Apache-2.0 + +#[tokio::main] +async fn main() -> Result<(), Box> { + let config = aws_config::load_defaults(aws_config::BehaviorVersion::latest()).await; + let client = aws_sdk_cloudfront::Client::new(&config); + println!("Running CloudFront getting started scenario..."); + // TODO: setup, interact, teardown + let _ = client; + println!("Scenario complete."); + Ok(()) +} diff --git a/tuts/005-cloudfront-gettingstarted/rust/src/lib.rs b/tuts/005-cloudfront-gettingstarted/rust/src/lib.rs new file mode 100644 index 0000000..4e7ba61 --- /dev/null +++ b/tuts/005-cloudfront-gettingstarted/rust/src/lib.rs @@ -0,0 +1,11 @@ +// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +// SPDX-License-Identifier: Apache-2.0 + +use aws_sdk_cloudfront::Client; + +// TODO: Add wrapper functions matching CLI tutorial actions + +pub async fn placeholder(client: &Client) -> Result<(), aws_sdk_cloudfront::Error> { + let _ = client; + Ok(()) +} diff --git a/tuts/008-vpc-private-servers-gs/rust/Cargo.toml b/tuts/008-vpc-private-servers-gs/rust/Cargo.toml new file mode 100644 index 0000000..09f7aeb --- /dev/null +++ b/tuts/008-vpc-private-servers-gs/rust/Cargo.toml @@ -0,0 +1,9 @@ +[package] +name = "tutorial-ec2" +version = "0.1.0" +edition = "2021" + +[dependencies] +aws-config = { version = "1", features = ["behavior-version-latest"] } +aws-sdk-ec2 = "1" +tokio = { version = "1", features = ["full"] } diff --git a/tuts/008-vpc-private-servers-gs/rust/src/bin/scenario.rs b/tuts/008-vpc-private-servers-gs/rust/src/bin/scenario.rs new file mode 100644 index 0000000..f71a556 --- /dev/null +++ b/tuts/008-vpc-private-servers-gs/rust/src/bin/scenario.rs @@ -0,0 +1,13 @@ +// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +// SPDX-License-Identifier: Apache-2.0 + +#[tokio::main] +async fn main() -> Result<(), Box> { + let config = aws_config::load_defaults(aws_config::BehaviorVersion::latest()).await; + let client = aws_sdk_ec2::Client::new(&config); + println!("Running Ec2 getting started scenario..."); + // TODO: setup, interact, teardown + let _ = client; + println!("Scenario complete."); + Ok(()) +} diff --git a/tuts/008-vpc-private-servers-gs/rust/src/lib.rs b/tuts/008-vpc-private-servers-gs/rust/src/lib.rs new file mode 100644 index 0000000..a49ad37 --- /dev/null +++ b/tuts/008-vpc-private-servers-gs/rust/src/lib.rs @@ -0,0 +1,11 @@ +// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +// SPDX-License-Identifier: Apache-2.0 + +use aws_sdk_ec2::Client; + +// TODO: Add wrapper functions matching CLI tutorial actions + +pub async fn placeholder(client: &Client) -> Result<(), aws_sdk_ec2::Error> { + let _ = client; + Ok(()) +} diff --git a/tuts/009-vpc-ipam-gs/rust/Cargo.toml b/tuts/009-vpc-ipam-gs/rust/Cargo.toml new file mode 100644 index 0000000..09f7aeb --- /dev/null +++ b/tuts/009-vpc-ipam-gs/rust/Cargo.toml @@ -0,0 +1,9 @@ +[package] +name = "tutorial-ec2" +version = "0.1.0" +edition = "2021" + +[dependencies] +aws-config = { version = "1", features = ["behavior-version-latest"] } +aws-sdk-ec2 = "1" +tokio = { version = "1", features = ["full"] } diff --git a/tuts/009-vpc-ipam-gs/rust/src/bin/scenario.rs b/tuts/009-vpc-ipam-gs/rust/src/bin/scenario.rs new file mode 100644 index 0000000..f71a556 --- /dev/null +++ b/tuts/009-vpc-ipam-gs/rust/src/bin/scenario.rs @@ -0,0 +1,13 @@ +// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +// SPDX-License-Identifier: Apache-2.0 + +#[tokio::main] +async fn main() -> Result<(), Box> { + let config = aws_config::load_defaults(aws_config::BehaviorVersion::latest()).await; + let client = aws_sdk_ec2::Client::new(&config); + println!("Running Ec2 getting started scenario..."); + // TODO: setup, interact, teardown + let _ = client; + println!("Scenario complete."); + Ok(()) +} diff --git a/tuts/009-vpc-ipam-gs/rust/src/lib.rs b/tuts/009-vpc-ipam-gs/rust/src/lib.rs new file mode 100644 index 0000000..a49ad37 --- /dev/null +++ b/tuts/009-vpc-ipam-gs/rust/src/lib.rs @@ -0,0 +1,11 @@ +// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +// SPDX-License-Identifier: Apache-2.0 + +use aws_sdk_ec2::Client; + +// TODO: Add wrapper functions matching CLI tutorial actions + +pub async fn placeholder(client: &Client) -> Result<(), aws_sdk_ec2::Error> { + let _ = client; + Ok(()) +} diff --git a/tuts/010-cloudmap-service-discovery/rust/Cargo.toml b/tuts/010-cloudmap-service-discovery/rust/Cargo.toml new file mode 100644 index 0000000..4b39ff5 --- /dev/null +++ b/tuts/010-cloudmap-service-discovery/rust/Cargo.toml @@ -0,0 +1,9 @@ +[package] +name = "tutorial-servicediscovery" +version = "0.1.0" +edition = "2021" + +[dependencies] +aws-config = { version = "1", features = ["behavior-version-latest"] } +aws-sdk-servicediscovery = "1" +tokio = { version = "1", features = ["full"] } diff --git a/tuts/010-cloudmap-service-discovery/rust/src/bin/scenario.rs b/tuts/010-cloudmap-service-discovery/rust/src/bin/scenario.rs new file mode 100644 index 0000000..884c072 --- /dev/null +++ b/tuts/010-cloudmap-service-discovery/rust/src/bin/scenario.rs @@ -0,0 +1,13 @@ +// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +// SPDX-License-Identifier: Apache-2.0 + +#[tokio::main] +async fn main() -> Result<(), Box> { + let config = aws_config::load_defaults(aws_config::BehaviorVersion::latest()).await; + let client = aws_sdk_servicediscovery::Client::new(&config); + println!("Running CloudMap getting started scenario..."); + // TODO: setup, interact, teardown + let _ = client; + println!("Scenario complete."); + Ok(()) +} diff --git a/tuts/010-cloudmap-service-discovery/rust/src/lib.rs b/tuts/010-cloudmap-service-discovery/rust/src/lib.rs new file mode 100644 index 0000000..9fb62ca --- /dev/null +++ b/tuts/010-cloudmap-service-discovery/rust/src/lib.rs @@ -0,0 +1,11 @@ +// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +// SPDX-License-Identifier: Apache-2.0 + +use aws_sdk_servicediscovery::Client; + +// TODO: Add wrapper functions matching CLI tutorial actions + +pub async fn placeholder(client: &Client) -> Result<(), aws_sdk_servicediscovery::Error> { + let _ = client; + Ok(()) +} diff --git a/tuts/011-getting-started-batch-fargate/rust/Cargo.toml b/tuts/011-getting-started-batch-fargate/rust/Cargo.toml new file mode 100644 index 0000000..c4e8dab --- /dev/null +++ b/tuts/011-getting-started-batch-fargate/rust/Cargo.toml @@ -0,0 +1,9 @@ +[package] +name = "tutorial-batch" +version = "0.1.0" +edition = "2021" + +[dependencies] +aws-config = { version = "1", features = ["behavior-version-latest"] } +aws-sdk-batch = "1" +tokio = { version = "1", features = ["full"] } diff --git a/tuts/011-getting-started-batch-fargate/rust/src/bin/scenario.rs b/tuts/011-getting-started-batch-fargate/rust/src/bin/scenario.rs new file mode 100644 index 0000000..2add219 --- /dev/null +++ b/tuts/011-getting-started-batch-fargate/rust/src/bin/scenario.rs @@ -0,0 +1,13 @@ +// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +// SPDX-License-Identifier: Apache-2.0 + +#[tokio::main] +async fn main() -> Result<(), Box> { + let config = aws_config::load_defaults(aws_config::BehaviorVersion::latest()).await; + let client = aws_sdk_batch::Client::new(&config); + println!("Running Batch getting started scenario..."); + // TODO: setup, interact, teardown + let _ = client; + println!("Scenario complete."); + Ok(()) +} diff --git a/tuts/011-getting-started-batch-fargate/rust/src/lib.rs b/tuts/011-getting-started-batch-fargate/rust/src/lib.rs new file mode 100644 index 0000000..71af854 --- /dev/null +++ b/tuts/011-getting-started-batch-fargate/rust/src/lib.rs @@ -0,0 +1,11 @@ +// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +// SPDX-License-Identifier: Apache-2.0 + +use aws_sdk_batch::Client; + +// TODO: Add wrapper functions matching CLI tutorial actions + +pub async fn placeholder(client: &Client) -> Result<(), aws_sdk_batch::Error> { + let _ = client; + Ok(()) +} diff --git a/tuts/012-transitgateway-gettingstarted/rust/Cargo.toml b/tuts/012-transitgateway-gettingstarted/rust/Cargo.toml new file mode 100644 index 0000000..09f7aeb --- /dev/null +++ b/tuts/012-transitgateway-gettingstarted/rust/Cargo.toml @@ -0,0 +1,9 @@ +[package] +name = "tutorial-ec2" +version = "0.1.0" +edition = "2021" + +[dependencies] +aws-config = { version = "1", features = ["behavior-version-latest"] } +aws-sdk-ec2 = "1" +tokio = { version = "1", features = ["full"] } diff --git a/tuts/012-transitgateway-gettingstarted/rust/src/bin/scenario.rs b/tuts/012-transitgateway-gettingstarted/rust/src/bin/scenario.rs new file mode 100644 index 0000000..f71a556 --- /dev/null +++ b/tuts/012-transitgateway-gettingstarted/rust/src/bin/scenario.rs @@ -0,0 +1,13 @@ +// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +// SPDX-License-Identifier: Apache-2.0 + +#[tokio::main] +async fn main() -> Result<(), Box> { + let config = aws_config::load_defaults(aws_config::BehaviorVersion::latest()).await; + let client = aws_sdk_ec2::Client::new(&config); + println!("Running Ec2 getting started scenario..."); + // TODO: setup, interact, teardown + let _ = client; + println!("Scenario complete."); + Ok(()) +} diff --git a/tuts/012-transitgateway-gettingstarted/rust/src/lib.rs b/tuts/012-transitgateway-gettingstarted/rust/src/lib.rs new file mode 100644 index 0000000..a49ad37 --- /dev/null +++ b/tuts/012-transitgateway-gettingstarted/rust/src/lib.rs @@ -0,0 +1,11 @@ +// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +// SPDX-License-Identifier: Apache-2.0 + +use aws_sdk_ec2::Client; + +// TODO: Add wrapper functions matching CLI tutorial actions + +pub async fn placeholder(client: &Client) -> Result<(), aws_sdk_ec2::Error> { + let _ = client; + Ok(()) +}