Skip to content

Commit

Permalink
Add region tag to Storage HMAC key Terraform sample (#5420) (#3824)
Browse files Browse the repository at this point in the history
Signed-off-by: Modular Magician <magic-modules@google.com>
  • Loading branch information
modular-magician authored Nov 3, 2021
1 parent 1c1a49a commit c411bff
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .changelog/5420.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
```release-note:none
```
2 changes: 2 additions & 0 deletions google-beta/resource_storage_hmac_key_generated_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,12 @@ func TestAccStorageHmacKey_storageHmacKeyExample(t *testing.T) {

func testAccStorageHmacKey_storageHmacKeyExample(context map[string]interface{}) string {
return Nprintf(`
# Create a new service account
resource "google_service_account" "service_account" {
account_id = "tf-test-my-svc-acc%{random_suffix}"
}
#Create the HMAC key for the associated service account
resource "google_storage_hmac_key" "key" {
service_account_email = google_service_account.service_account.email
}
Expand Down
2 changes: 2 additions & 0 deletions website/docs/r/storage_hmac_key.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,12 @@ state as plain-text. [Read more about sensitive data in state](/docs/state/sensi


```hcl
# Create a new service account
resource "google_service_account" "service_account" {
account_id = "my-svc-acc"
}
#Create the HMAC key for the associated service account
resource "google_storage_hmac_key" "key" {
service_account_email = google_service_account.service_account.email
}
Expand Down

0 comments on commit c411bff

Please sign in to comment.