Skip to content

Commit

Permalink
chore: Increasing random length of bucket name in fixture (terraform-…
Browse files Browse the repository at this point in the history
…google-modules#42)

* Increasing random length of bucket name in fixture

* Replaced random_pet with random_id resource

* Fixed lint issue

* Updated byte_length in random_id

* Added random_string for generating bucket names

Fixes:

1. Replaced random_pet with random_string, as GCS buckets take only lowercase characters as name.
  • Loading branch information
kunalkg11 authored Mar 2, 2020
1 parent f93bf5d commit 483ba01
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/fixtures/multiple_buckets/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@ provider "random" {
version = "~> 2.0"
}

resource "random_pet" "main" {
length = 1
prefix = "multiple-buckets"
separator = "-"
resource "random_string" "prefix" {
length = 4
upper = false
special = false
}

module "example" {
source = "../../../examples/multiple_buckets"
project_id = var.project_id
prefix = random_pet.main.id
prefix = "multiple-buckets-${random_string.prefix.result}"
names = ["one", "two"]

bucket_policy_only = {
Expand Down

0 comments on commit 483ba01

Please sign in to comment.