Skip to content

Instantly share code, notes, and snippets.

@100daysofdevops
Created March 3, 2019 20:19
Show Gist options
  • Select an option

  • Save 100daysofdevops/d3bd8b90e8d17291e4252b9721af4576 to your computer and use it in GitHub Desktop.

Select an option

Save 100daysofdevops/d3bd8b90e8d17291e4252b9721af4576 to your computer and use it in GitHub Desktop.
resource "aws_kms_key" "rds-key" {
description = "key to encrypt rds password"
tags {
Name = "my-rds-kms-key"
}
}
resource "aws_kms_alias" "rds-kms-alias" {
target_key_id = "${aws_kms_key.rds-key.id}"
name = "alias/rds-kms-key"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment