Code to attach an EBS volume during provisioning with CMK

Has anyone provisioned an EC2 instance and EBS volumes using CMK?

you mean, KMS encryption? If so, I put the packer code in the different threads.