Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Aurora DSQL Go SDK code examples

Overview

The code examples in this topic show you how to use the AWS Go SDK with DSQL to create, read, update, and delete clusters.

Run the examples

⚠️ Important

  • Running this code might result in charges to your AWS account.
  • We recommend that you grant your code least privilege. At most, grant only the minimum permissions required to perform the task. For more information, see Grant least privilege.
  • This code is not tested in every AWS Region. For more information, see AWS Regional Services.

Prerequisites

Setup test running environment

Ensure you are authenticated with AWS credentials. No other setup is needed besides having Go installed.

Run the example tests

In a terminal run the following commands:

Execute tests to create and delete clusters

make test

OR

go env -w GOPROXY=direct
go test -v -count=1 ./cmd/create_multi_region
go test -v -count=1 ./cmd/create_single_region
go test -v -count=1 ./cmd/get_cluster
go test -v -count=1 ./cmd/update_cluster
go test -v -count=1 ./cmd/delete_multi_region
go test -v -count=1 ./cmd/delete_single_region

Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.

SPDX-License-Identifier: MIT-0