Builderoom

September 28, 2026

View repo

The AWS SDK for Go, used to call AWS service APIs such as Amazon DynamoDB in Go applications.

Apache-2.0
安装命令(说明)bash
go get github.com/aws/aws-sdk-go-v2/aws
go get github.com/aws/aws-sdk-go-v2/config
go get github.com/aws/aws-sdk-go-v2/service/dynamodb
最小示例代码python
package main

import (
    "context"
    "fmt"
    "log"

    "github.com/aws/aws-sdk-go-v2/aws"
    "github.com/aws/aws-sdk-go-v2/config"
    "github.com/aws/aws-sdk-go-v2/service/dynamodb"
)

func main() {
    cfg, err := config.LoadDefaultConfig(context.TODO(), config.WithRegion("us-west-2"))
    if err != nil {
        log.Fatalf("unable to load SDK config, %v", err)
    }

    svc := dynamodb.NewFromConfig(cfg)

    resp, err := svc.ListTables(context.TODO(), &dynamodb.ListTablesInput{
        Limit: aws.Int32(5),
    })
    if err != nil {
        log.Fatalf("failed to list tables, %v", err)
    }

    fmt.Println("Tables:")
    for _, tableName := range resp.TableNames {
        fmt.Println(tableName)
    }
}

Product facts

Type
API, SDK & Library
Category
Development & Engineering › Cloud Infrastructure
Pricing
Open source
License
Apache-2.0
Launched
Sep 28, 2026
Listed
Sep 28, 2026
Website
github.com

Overview

GitHubGitHub

AWS SDK for Go v2 (repository name `aws-sdk-go-v2`) is the second major version of the official AWS SDK for the Go programming language. It enables Go developers to call various AWS service APIs directly from their applications. ## Requirements This SDK requires **Go 1.24** or later. Its version support policy follows the upstream Go release policy, with an additional six months of support for recently deprecated language versions. ## Key Capabilities - **Modular Dependencies**: Manage dependencies via Go modules, importing core packages (`aws`, `config`) and specific service packages (such as `service/dynamodb`) as needed. - **Default Configuration Loading**: Use `config.LoadDefaultConfig` to automatically load configuration and credentials from environment variables, shared credentials files, and shared configuration files. - **Service Clients**: Create service-specific client instances based on the loaded configuration to make API requests. ## Target Audience Ideal for backend developers who need to integrate AWS services (such as Amazon DynamoDB) into Go projects. If you are currently using v1 of the AWS SDK for Go, AWS provides a migration guide to help you transition to v2. ## Resources & Support The project is licensed under Apache-2.0. Developers can report bugs or submit feature requests via GitHub Issues, and ask questions through GitHub Discussions. Official documentation, including the SDK Developer Guide and API Reference Documentation, is also available.

Key features

  • Modular dependency management: Based on Go modules, import aws, config, and specific service sub-packages as needed.
  • Default configuration loading: Automatically loads authentication and region settings from environment variables, shared credentials, and configuration files.
  • Service client creation: Use the NewFromConfig method to create clients for specific AWS services from a configuration object.
  • Minimum Go 1.24 requirement: The v2 SDK requires at least Go 1.24 in the runtime environment.
  • API reference documentation: Provides docs for input and output parameters of API operations across all supported AWS services.
  • v1 migration guide: Offers official documentation for migrating from AWS SDK for Go v1 to v2.

Releases

Notify me

Initial · AWS SDK for Go v2

Q&A

What is the minimum Go version required by AWS SDK for Go v2?AI-generated
The v2 SDK requires a minimum Go version of Go 1.24.
How do I install dependencies for AWS SDK for Go v2?AI-generated
First initialize your Go module (`go mod init`), then use the `go get` command to fetch the required packages individually, such as github.com/aws/aws-sdk-go-v2/aws, github.com/aws/aws-sdk-go-v2/config, and specific service packages like github.com/aws/aws-sdk-go-v2/service/dynamodb.
How does the SDK load configuration and credentials?AI-generated
By calling the `config.LoadDefaultConfig` method, the SDK uses default settings and loads additional configuration and credential values from environment variables, shared credentials files, and shared configuration files.
What open source license does this SDK use?AI-generated
This SDK is licensed under Apache-2.0.
Which documentation should I consult when migrating from v1 to v2?AI-generated
Refer to the official SDK Migration Guide at https://docs.aws.amazon.com/sdk-for-go/v2/developer-guide/migrate-gosdk.html.
View repo
Bookmark

This product has no owner yet

It was listed by the platform or its author left. If it is your work, prove your relationship to become the owner.

Claim this product

Alternatives

The product content on this page was translated by AI from the author's original.