forked from GoogleCloudPlatform/magic-modules
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for annotations field in google_secret_manager_secret r…
…esource (GoogleCloudPlatform#8500) * Added support for annotations field in google_secret_manager_secret resource * Adjusted white spaces in Secret.yaml
- Loading branch information
1 parent
5e7e0b8
commit d098c6d
Showing
3 changed files
with
131 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
mmv1/templates/terraform/examples/secret_with_annotations.tf.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
resource "google_secret_manager_secret" "<%= ctx[:primary_resource_id] %>" { | ||
secret_id = "<%= ctx[:vars]['secret_id'] %>" | ||
|
||
labels = { | ||
label = "my-label" | ||
} | ||
|
||
annotations = { | ||
key1 = "someval" | ||
key2 = "someval2" | ||
key3 = "someval3" | ||
key4 = "someval4" | ||
key5 = "someval5" | ||
} | ||
|
||
replication { | ||
automatic = true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters