Skip to content

Latest commit

 

History

History
48 lines (30 loc) · 1.9 KB

README.md

File metadata and controls

48 lines (30 loc) · 1.9 KB

AWS SDK for Rust code example for LocalStack

Purpose

This example demonstrate how to use LocalStack with the AWS SDK for Rust.

LocalStack is a cloud service emulator that runs in a single container on your computer.

Code example

⚠ Important

  • We recommend that you grant this code least privilege, or at most the minimum permissions required to perform the task. For more information, see Grant Least Privilege in the AWS Identity and Access Management User Guide.
  • This code has not been tested in all AWS Regions. Some AWS services are available only in specific Regions.
  • Running this code might result in charges to your AWS account.

Running the code example

Prerequisites

You must have an AWS account, and have configured your default credentials and AWS Region as described in https://github.com/awslabs/aws-sdk-rust.

use-localstack

This example lists your Amazon Simple Storage Service buckets and Amazon Simple Queue Service queues.

cargo run --bin use-localstack

Resources

Contributing

To propose a new code example to the AWS documentation team, see CONTRIBUTING.md. The team prefers to create code examples that show broad scenarios rather than individual API calls.

Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0