Skip to content

Commit

Permalink
Update comments in examples/ about aws_kms_ciphertext (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
xliiv authored and antonbabenko committed Jun 5, 2018
1 parent 8cd1901 commit 7c22b76
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion examples/cloudwatch-alerts-to-slack/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ variable "kms_key_arn" {
default = "arn:aws:kms:eu-west-1:000014191260:key/66db1c5d-d42b-4e28-8efb-07a9cf607a73"
}

# Encrypt the URL, this is an example, in practice encryption should not be done here as it will be shown in logs and end up in Terraform state file
# Encrypt the URL, storing encryption here will show it in logs and in tfstate
# https://www.terraform.io/docs/state/sensitive-data.html
data "aws_kms_ciphertext" "slack_url" {
plaintext = "https://hooks.slack.com/services/AAA/BBB/CCC"
key_id = "${var.kms_key_arn}"
Expand Down
3 changes: 2 additions & 1 deletion examples/notify-slack-kms/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ variable "kms_key_arn" {
default = "arn:aws:kms:eu-west-1:000014191260:key/66db1c5d-d42b-4e28-8efb-07a9cf607a73"
}

# Encrypt the URL, this is an example, in practice encryption should not be done here as it will be shown in logs and end up in Terraform state file
# Encrypt the URL, storing encryption here will show it in logs and in tfstate
# https://www.terraform.io/docs/state/sensitive-data.html
data "aws_kms_ciphertext" "slack_url" {
plaintext = "https://hooks.slack.com/services/AAA/BBB/CCC"
key_id = "${var.kms_key_arn}"
Expand Down

0 comments on commit 7c22b76

Please sign in to comment.