Skip to content

Commit 94c4fad

Browse files
committed
fix: minor updates for consistency/deprecations
1 parent d240f2d commit 94c4fad

File tree

5 files changed

+32
-8
lines changed

5 files changed

+32
-8
lines changed

4-projects/business_unit_1/shared/example_infra_pipeline.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ module "app_infra_cloudbuild_project" {
3232
"artifactregistry.googleapis.com",
3333
"cloudresourcemanager.googleapis.com"
3434
]
35-
3635
# Metadata
3736
project_suffix = "infra-pipeline"
3837
application_name = "app-infra-pipelines"

4-projects/business_unit_2/shared/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
| billing\_account | The ID of the billing account to associated this project with | `string` | n/a | yes |
99
| budget\_amount | The amount to use as the budget | `number` | `1000` | no |
1010
| default\_region | Default region to create resources where applicable. | `string` | `"us-central1"` | no |
11-
| folder\_prefix | Name prefix to use for folders created. | `string` | `"fldr"` | no |
11+
| folder\_prefix | Name prefix to use for folders created. Should be the same in all steps. | `string` | `"fldr"` | no |
1212
| org\_id | The organization id for the associated services | `string` | n/a | yes |
13-
| parent\_folder | Optional - if using a folder for testing. | `string` | `""` | no |
14-
| project\_prefix | Name prefix to use for projects created. | `string` | `"prj"` | no |
13+
| parent\_folder | Optional - for an organization with existing projects or for development/validation. It will place all the example foundation resources under the provided folder instead of the root organization. The value is the numeric folder ID. The folder must already exist. Must be the same value used in previous step. | `string` | `""` | no |
14+
| project\_prefix | Name prefix to use for projects created. Should be the same in all steps. Max size is 3 characters. | `string` | `"prj"` | no |
1515
| terraform\_service\_account | Service account email of the account to impersonate to run Terraform | `string` | n/a | yes |
1616

1717
## Outputs

4-projects/business_unit_2/shared/variables.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ variable "billing_account" {
3636
}
3737

3838
variable "parent_folder" {
39-
description = "Optional - if using a folder for testing."
39+
description = "Optional - for an organization with existing projects or for development/validation. It will place all the example foundation resources under the provided folder instead of the root organization. The value is the numeric folder ID. The folder must already exist. Must be the same value used in previous step."
4040
type = string
4141
default = ""
4242
}
@@ -60,13 +60,13 @@ variable "budget_amount" {
6060
}
6161

6262
variable "folder_prefix" {
63-
description = "Name prefix to use for folders created."
63+
description = "Name prefix to use for folders created. Should be the same in all steps."
6464
type = string
6565
default = "fldr"
6666
}
6767

6868
variable "project_prefix" {
69-
description = "Name prefix to use for projects created."
69+
description = "Name prefix to use for projects created. Should be the same in all steps. Max size is 3 characters."
7070
type = string
7171
default = "prj"
7272
}

4-projects/modules/base_env/example_storage_cmek.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ module "kms" {
5959
resource "random_string" "bucket_name" {
6060
length = 5
6161
upper = false
62-
number = true
62+
numeric = true
6363
lower = true
6464
special = false
6565
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/**
2+
* Copyright 2022 Google LLC
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
terraform {
18+
required_providers {
19+
random = {
20+
source = "hashicorp/random"
21+
version = ">= 3.3"
22+
}
23+
}
24+
25+
}

0 commit comments

Comments
 (0)