10.5K ·GitHub
What is this?
The official AWS repository of code examples showing how to use the AWS SDKs to work with AWS services. Many of these examples are injected straight into the AWS documentation and SDK Developer Guides.
Is this one big dump of snippets, or is it organized?
It's organized by language SDK into subdirectories, with a README table mapping each folder to its SDK version: python/ holds SDK 3 examples, javav2/ is Java SDK 2, plus javascriptv3/, dotnetv3/, gov2/, ruby/ and more.
How do I actually run one of these examples?
Open the folder for your language, such as python/ or javascriptv3/, and follow its SDK-specific instructions for invoking the example code.
Do I need an AWS account to run these?
Yes — an AWS account (the Free Tier is fine to start) plus configured credentials, which the README says to set up with the AWS CLI.
Will running these examples cost me money or touch my existing resources?
They can do both: the code calls real AWS services that may incur charges, and examples could theoretically modify or delete existing resources. The README advises knowing what each example creates or deletes and backing up important data.
Who is this for — people learning AWS, or developers who need a quick reference?
Both: each example demonstrates the most common uses of the SDK for its language, so the repo works as a learning path and as copy-paste reference material.
Can I copy this code into my own project?
Yes, under Apache License 2.0, as long as you keep the copyright comment with the SPDX-License-Identifier at the top of any file you reuse.
Which programming languages does the repo cover?
.NET, C++, Go, Java, JavaScript, Kotlin, PHP, Python, Ruby, Rust and Swift each get their own folder, with the README table showing which SDK version each folder targets.
Are there full sample applications, or only small snippets?
There are both: an /applications folder holds production-like example applications, and their language-specific parts live in each language's cross-service folder, such as python/cross-service.
Is everything in here still current?
Watch the legacy folders: old SDK versions have their own directories (dotnet/, go/, javascript/, pythonv1/), and Java v1 examples reached end-of-support on December 31, 2025. Prefer the v2/v3 folders.
Is the example code actually tested?
Yes — a custom test automation framework under /test routinely exercises the examples by deploying them to AWS as a polyglot, container-based integration setup, though the README notes it was still under active construction in 2023.
What are similar projects?
hello-algo, rust-learning, flatbuffers, pulumi, arrow, python-guide, dev-palmos, grpc
Which topics is it in?
examples, ruby, aws, programming, php, dotnet, kotlin, learning-resources, swift, testing, learning, documentation