Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
nb-goog committed Nov 19, 2024
1 parent 1174f5a commit d63ea27
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/bucket_setup_using_autokey/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ resource "random_string" "suffix" {
}

resource "google_kms_key_handle" "bucket_keyhandle" {
provider = google-beta

provider = google-beta
name = "${var.resource_project_id}-keyhandle-${random_string.suffix.result}"
project = var.resource_project_id
location = var.bucket_location
resource_type_selector = "storage.googleapis.com/Bucket"
resource_type_selector = "storage.googleapis.com/Bucket"

lifecycle {
ignore_changes = [name]
Expand All @@ -44,7 +44,7 @@ module "bucket" {
source = "terraform-google-modules/cloud-storage/google//modules/simple_bucket"
version = "8.0"

name = "${var.resource_project_id}-keyhandle-${random_string.suffix.result}"
name = "${var.resource_project_id}-bucket-${random_string.suffix.result}"
project_id = var.resource_project_id
location = var.bucket_location
encryption = {
Expand Down
10 changes: 10 additions & 0 deletions examples/bucket_setup_using_autokey/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,16 @@
* limitations under the License.
*/

variable "kms_project_id" {
description = "The ID of the project in which kms keyring and kms keys will be provisioned by autokey."
type = string
}

variable "folder_id" {
type = string
description = "The ID of the folder for which to configure and enable Autokey feature. Required when using Autokey."
}

variable "resource_project_id" {
description = "The ID of the project in which to provision resources (bucket, persistent disk, etc)"
type = string
Expand Down

0 comments on commit d63ea27

Please sign in to comment.