Use this data source to get the ARN of a KMS key alias. By using this data source, you can reference key alias without having to hard code the ARN as input.
data "aws_kms_alias" "s3" {
name = "alias/aws/s3"
}
name - (Required) The display name of the alias. The name must start with the word "alias" followed by a forward slash (alias/) arn - The Amazon Resource Name(ARN) of the key alias. target_key_id - Key identifier pointed to by the alias. target_key_arn - ARN pointed to by the alias.
© 2018 HashiCorpLicensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/aws/d/kms_alias.html