Creating a CMK in AWS Key Management Service

The following example uses the AWS SDK for GoCreateKey
method,
which implements the
CreateKey operation,
to create a customer master key (CMK).
Since the example only encrypts a small amount of data,
a CMK is fine for our purposes.
For larger amounts of data,
use the CMK to encrypt a data encryption key (DEK).