

AWS SDK for Go V1 has reached end-of-support. We recommend that you migrate to [AWS SDK for Go V2](https://docs.aws.amazon.com/sdk-for-go/v2/developer-guide/). For additional details and information on how to migrate, please refer to this [announcement](https://aws.amazon.com/blogs//developer/announcing-end-of-support-for-aws-sdk-for-go-v1-on-july-31-2025/).

# AWS Key Management Service Examples Using the AWS SDK for Go
<a name="using-kms-with-go-sdk"></a>

You can use the following examples to access AWS Key Management Service (AWS KMS) using the AWS SDK for Go. For more information about AWS KMS, see the [AWS KMS documentation](https://aws.amazon.com/documentation/kms/). For reference information about the AWS KMS client, see the [New](https://docs.aws.amazon.com/sdk-for-go/api/service/kms/#New) function.

 **Examples** 

**Topics**
+ [Creating a CMK in AWS Key Management Service](kms-example-create-key.md)
+ [Encrypting Data with AWS Key Management Service](kms-example-encrypt-data.md)
+ [Decrypting a Data Blob in AWS Key Management Service](kms-example-decrypt-blob.md)
+ [Re-encrypting a Data Blob in AWS Key Management Service](kms-example-re-encrypt-data.md)