Skip to content

Commit e62e4c5

Browse files
committed
other pr comments and docs
1 parent ca04ca8 commit e62e4c5

File tree

9 files changed

+28
-19
lines changed

9 files changed

+28
-19
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ module "localhost_function" {
6666
| region | The region in which resources will be applied. | string | n/a | yes |
6767
| runtime | The runtime in which the function will be executed. | string | n/a | yes |
6868
| service\_account\_email | The service account to run the function as. | string | `""` | no |
69-
| source\_dependent\_files | A list of any terraform created `local_file`s that the module will wait for before creating the archive. | object | `<list>` | no |
69+
| source\_dependent\_files | A list of any Terraform created `local_file`s that the module will wait for before creating the archive. | object | `<list>` | no |
7070
| source\_directory | The pathname of the directory which contains the function source code. | string | n/a | yes |
7171
| timeout\_s | The amount of time in seconds allotted for the execution of the function. | number | `"60"` | no |
7272

examples/automatic-labelling-folder/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ this directory:
2121

2222
| Name | Description | Type | Default | Required |
2323
|------|-------------|:----:|:-----:|:-----:|
24+
| folder\_id | The ID of the folder to look for changes. | string | n/a | yes |
2425
| project\_id | The ID of the project to which resources will be applied. | string | n/a | yes |
2526
| region | The region in which resources will be applied. | string | n/a | yes |
26-
| sub\_folder\_id | The ID of the folder to look for changes. | string | n/a | yes |
2727

2828
## Outputs
2929

examples/automatic-labelling-folder/main.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ protoPayload.methodName="CreateProject"
4949
EOF
5050
name = random_pet.main.id
5151
project_id = var.project_id
52-
folder_id = var.sub_folder_id
52+
folder_id = var.folder_id
5353
}
5454

5555
module "localhost_function" {
@@ -59,7 +59,7 @@ module "localhost_function" {
5959
entry_point = "labelResource"
6060

6161
environment_variables = {
62-
FOLDER_ID = var.sub_folder_id
62+
FOLDER_ID = var.folder_id
6363
LABEL_KEY = "test"
6464
LABEL_VALUE = "foobar"
6565
}
@@ -89,7 +89,7 @@ resource "random_pet" "project_id" {
8989
resource "google_project" "test" {
9090
name = random_pet.project_id.id
9191
project_id = random_pet.project_id.id
92-
folder_id = var.sub_folder_id
92+
folder_id = var.folder_id
9393

9494
lifecycle {
9595
ignore_changes = [

examples/automatic-labelling-folder/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ variable "project_id" {
1919
description = "The ID of the project to which resources will be applied."
2020
}
2121

22-
variable "sub_folder_id" {
22+
variable "folder_id" {
2323
type = string
2424
description = "The ID of the folder to look for changes."
2525
}

examples/dynamic-files/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ this directory:
2727
| Name | Description |
2828
|------|-------------|
2929
| function\_name | The name of the function created |
30-
| project\_id | The ID of the project to which resources are applied. |
3130
| random\_file\_string | The content of the terraform created file in the source directory. |
3231
| region | The region in which resources are applied. |
3332

examples/dynamic-files/main.tf

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@
1414
* limitations under the License.
1515
*/
1616

17-
terraform {
18-
required_version = "~> 0.12.0"
19-
}
20-
2117
resource "random_pet" "main" {
2218
length = 2
2319
separator = "-"

examples/dynamic-files/outputs.tf

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,6 @@
1414
* limitations under the License.
1515
*/
1616

17-
output "project_id" {
18-
value = var.project_id
19-
description = "The ID of the project to which resources are applied."
20-
}
21-
2217
output "region" {
2318
value = var.region
2419
description = "The region in which resources are applied."

examples/dynamic-files/versions.tf

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/**
2+
* Copyright 2019 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_version = "~> 0.12.6"
19+
}

test/fixtures/automatic-labelling-folder/main.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
module "automatic_labelling_folder" {
1818
source = "../../../examples/automatic-labelling-folder"
1919

20-
project_id = var.project_id
21-
sub_folder_id = var.sub_folder_id
22-
region = var.region
20+
project_id = var.project_id
21+
folder_id = var.sub_folder_id
22+
region = var.region
2323
}

0 commit comments

Comments
 (0)