The code examples in this topic show you how to use the AWS Go SDK with DSQL to create, read, update, and delete clusters.
- 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.
- Go version >= 1.21
- Valid AWS credentials can be discovered by the default provider chain.
Ensure you are authenticated with AWS credentials. No other setup is needed besides having Go installed.
In a terminal run the following commands:
make testOR
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_regionCopyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
SPDX-License-Identifier: MIT-0