Skip to content

Commit

Permalink
Replace several occurences of id in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
rileykarson committed Sep 19, 2019
1 parent 68deae1 commit e6e3761
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ resource "google_pubsub_topic" "<%= ctx[:primary_resource_id] %>" {
resource "google_pubsub_subscription" "<%= ctx[:primary_resource_id] %>" {
project = "<%= ctx[:vars]['subscription_project'] %>"
name = "<%= ctx[:vars]['subscription_name'] %>"
topic = "${google_pubsub_topic.<%= ctx[:primary_resource_id] %>.id}"
topic = "${google_pubsub_topic.<%= ctx[:primary_resource_id] %>.name}"
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ resource "google_kms_key_ring" "my_key_ring" {
resource "google_kms_crypto_key" "my_crypto_key" {
name = "my-crypto-key"
key_ring = "${google_kms_key_ring.my_key_ring.id}"
key_ring = "${google_kms_key_ring.my_key_ring.self_link}"
}
```

Expand All @@ -55,7 +55,7 @@ Finally, reference the encrypted ciphertext in your resource definitions:

```hcl
data "google_kms_secret" "sql_user_password" {
crypto_key = "${google_kms_crypto_key.my_crypto_key.id}"
crypto_key = "${google_kms_crypto_key.my_crypto_key.self_link}"
ciphertext = "CiQAqD+xX4SXOSziF4a8JYvq4spfAuWhhYSNul33H85HnVtNQW4SOgDu2UZ46dQCRFl5MF6ekabviN8xq+F+2035ZJ85B+xTYXqNf4mZs0RJitnWWuXlYQh6axnnJYu3kDU="
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@ resource "google_kms_key_ring" "my_key_ring" {
resource "google_kms_crypto_key" "my_crypto_key" {
name = "my-crypto-key"
key_ring = "${google_kms_key_ring.my_key_ring.id}"
key_ring = "${google_kms_key_ring.my_key_ring.self_link}"
}
```

Next, encrypt some sensitive information and use the encrypted data in your resource definitions:

```hcl
data "google_kms_secret_ciphertext" "my_password" {
crypto_key = "${google_kms_crypto_key.my_crypto_key.id}"
crypto_key = "${google_kms_crypto_key.my_crypto_key.self_link}"
plaintext = "my-secret-password"
}
Expand Down

0 comments on commit e6e3761

Please sign in to comment.