Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 0 additions & 19 deletions Gemfile

This file was deleted.

2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# Make will use bash instead of sh
SHELL := /usr/bin/env bash

DOCKER_TAG_VERSION_DEVELOPER_TOOLS := 0.1.0
DOCKER_TAG_VERSION_DEVELOPER_TOOLS := 0.4.3
DOCKER_IMAGE_DEVELOPER_TOOLS := cft/developer-tools
REGISTRY_URL := gcr.io/cloud-foundation-cicd

Expand Down
41 changes: 28 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,32 +26,36 @@ The
is a tested reference of how to use the root module with the
[event-project-log-entry submodule][event-project-log-entry-submodule].

[^]: (autogen_docs_start)

<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
## Inputs

| Name | Description | Type | Default | Required |
|------|-------------|:----:|:-----:|:-----:|
| available\_memory\_mb | The amount of memory in megabytes allotted for the function to use. | string | `"256"` | no |
| available\_memory\_mb | The amount of memory in megabytes allotted for the function to use. | number | `"256"` | no |
| bucket\_force\_destroy | When deleting the GCS bucket containing the cloud function, delete all objects in the bucket first. | bool | `"false"` | no |
| bucket\_labels | A set of key/value label pairs to assign to the function source archive bucket. | map(string) | `<map>` | no |
| bucket\_name | The name to apply to the bucket. Will default to a string of the function name. | string | `""` | no |
| description | The description of the function. | string | `"Processes events."` | no |
| entry\_point | The name of a method in the function source which will be invoked when the function is executed. | string | n/a | yes |
| environment\_variables | A set of key/value environment variable pairs to assign to the function. | map | `<map>` | no |
| event\_trigger | A source that fires events in response to a condition in another service. | map | n/a | yes |
| labels | A set of key/value label pairs to assign to any lableable resources. | map | `<map>` | no |
| environment\_variables | A set of key/value environment variable pairs to assign to the function. | map(string) | `<map>` | no |
| event\_trigger | A source that fires events in response to a condition in another service. | map(string) | n/a | yes |
| event\_trigger\_failure\_policy\_retry | A toggle to determine if the function should be retried on failure. | bool | `"false"` | no |
| labels | A set of key/value label pairs to assign to the Cloud Function. | map(string) | `<map>` | no |
| name | The name to apply to any nameable resources. | string | n/a | yes |
| project\_id | The ID of the project to which resources will be applied. | string | n/a | yes |
| region | The region in which resources will be applied. | string | n/a | yes |
| runtime | The runtime in which the function will be executed. | string | `"nodejs6"` | no |
| runtime | The runtime in which the function will be executed. | string | n/a | yes |
| service\_account\_email | The service account to run the function as. | string | `""` | no |
| source\_directory | The pathname of the directory which contains the function source code. | string | n/a | yes |
| timeout\_s | The amount of time in seconds allotted for the execution of the function. | string | `"60"` | no |
| timeout\_s | The amount of time in seconds allotted for the execution of the function. | number | `"60"` | no |

## Outputs

| Name | Description |
|------|-------------|
| name | The name of the function. |

[^]: (autogen_docs_end)
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->

## Requirements

Expand All @@ -63,11 +67,10 @@ order to invoke this module.
The following software dependencies must be installed on the system
from which this module will be invoked:

- [Terraform][terraform-site] v0.12.Z
- [Terraform][terraform-site] v0.12
- [Terraform Provider for Archive][terraform-provider-archive-site]
v1.2.Z
- [Terraform Provider for Google Cloud Platform][terraform-provider-gcp-site]
v2.5.Z
v1.2
- [Terraform Provider for Google Cloud Platform][terraform-provider-gcp-site] v2.5

### IAM Roles

Expand All @@ -87,3 +90,15 @@ following APIs enabled:

The [Project Factory module][project-factory-module-site] can be used to
provision projects with specific APIs activated.

## Contributing

Refer to the [contribution guidelines](./CONTRIBUTING.md) for
information on contributing to this module.

[automatic-labelling-from-localhost-example]: examples/automatic-labelling-from-localhost
[event-project-log-entry-submodule]: modules/event-project-log-entry
[repository-function-submodule]: modules/repository-function
[project-factory-module-site]: https://github.com/terraform-google-modules/terraform-google-project-factory/
[terraform-provider-gcp-site]: https://github.com/terraform-providers/terraform-provider-google/
[terraform-site]: https://www.terraform.io/
2 changes: 1 addition & 1 deletion build/int.cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ tags:
- 'integration'
substitutions:
_DOCKER_IMAGE_DEVELOPER_TOOLS: 'cft/developer-tools'
_DOCKER_TAG_VERSION_DEVELOPER_TOOLS: '0.1.0'
_DOCKER_TAG_VERSION_DEVELOPER_TOOLS: '0.4.3'
2 changes: 1 addition & 1 deletion build/lint.cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ tags:
- 'lint'
substitutions:
_DOCKER_IMAGE_DEVELOPER_TOOLS: 'cft/developer-tools'
_DOCKER_TAG_VERSION_DEVELOPER_TOOLS: '0.1.0'
_DOCKER_TAG_VERSION_DEVELOPER_TOOLS: '0.4.3'
10 changes: 9 additions & 1 deletion examples/automatic-labelling-folder/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,14 @@ this directory:
| project\_id | The ID of the project to which resources will be applied. | string | n/a | yes |
| region | The region in which resources will be applied. | string | n/a | yes |

## Outputs

| Name | Description |
|------|-------------|
| project\_id | The ID of the project to which resources are applied. |
| region | The region in which resources are applied. |
| test\_project\_id | The ID of the project to test. |

<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->

## Requirements
Expand All @@ -40,7 +48,7 @@ must also be met.
The following software dependencies must be installed on the system
from which this module will be invoked:

- [Terraform][terraform-site] v0.12.Z
- [Terraform][terraform-site] v0.12

### IAM Roles

Expand Down
2 changes: 1 addition & 1 deletion examples/automatic-labelling-folder/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -104,4 +104,4 @@ resource "google_project_iam_member" "test_project_iam" {
project = google_project.test.project_id
role = "roles/owner"
member = "serviceAccount:${var.project_id}@appspot.gserviceaccount.com"
}
}
14 changes: 10 additions & 4 deletions examples/automatic-labelling-from-localhost/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,23 @@ this directory:
- `terraform apply` to apply the execution plan
- `terraform destroy` to destroy the infrastructure

[^]: (autogen_docs_start)

<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
## Inputs

| Name | Description | Type | Default | Required |
|------|-------------|:----:|:-----:|:-----:|
| project\_id | The ID of the project to which resources will be applied. | string | n/a | yes |
| region | The region in which resources will be applied. | string | n/a | yes |
| subnetwork | The name or self_link of the subnetwork to create compute instance in. | string | `"default"` | no |
| zone | The zone in which resources will be applied. | string | n/a | yes |

[^]: (autogen_docs_end)
## Outputs

| Name | Description |
|------|-------------|
| compute\_instance\_name | The name of the unlabelled Compute instance. |

<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->

## Requirements

Expand All @@ -42,7 +48,7 @@ must also be met.
The following software dependencies must be installed on the system
from which this module will be invoked:

- [Terraform][terraform-site] v0.11.Z
- [Terraform][terraform-site] v0.12

### IAM Roles

Expand Down
2 changes: 1 addition & 1 deletion examples/automatic-labelling-from-localhost/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ resource "google_compute_instance" "main" {
}

network_interface {
network = "default"
subnetwork = var.subnetwork
}

project = var.project_id
Expand Down
6 changes: 6 additions & 0 deletions examples/automatic-labelling-from-localhost/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,9 @@ variable "zone" {
type = string
description = "The zone in which resources will be applied."
}

variable "subnetwork" {
type = string
description = "The name or self_link of the subnetwork to create compute instance in."
default = "default"
}
17 changes: 12 additions & 5 deletions examples/automatic-labelling-from-repository/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,31 @@ principal email address of the account responsible for causing the events.

## Usage

To provision this example, populate `terraform.tfvars` with the [required variables][#inputs] and run the following commands within
To provision this example, populate `terraform.tfvars` with the [required variables](#inputs) and run the following commands within
this directory:

- `terraform init` to initialize the directory
- `terraform plan` to generate the execution plan
- `terraform apply` to apply the execution plan
- `terraform destroy` to destroy the infrastructure

[^]: (autogen_docs_start)

<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
## Inputs

| Name | Description | Type | Default | Required |
|------|-------------|:----:|:-----:|:-----:|
| project\_id | The ID of the project to which resources will be applied. | string | n/a | yes |
| region | The region in which resources will be applied. | string | n/a | yes |
| subnetwork | The name or self_link of the subnetwork to create compute instance in. | string | `"default"` | no |
| zone | The zone in which resources will be applied. | string | n/a | yes |

[^]: (autogen_docs_end)
## Outputs

| Name | Description |
|------|-------------|
| compute\_instance\_name | The name of the unlabelled Compute instance. |

<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->

## Requirements

Expand All @@ -43,7 +49,7 @@ must also be met.
The following software dependencies must be installed on the system
from which this module will be invoked:

- [Terraform][terraform-site] v0.11.Z
- [Terraform][terraform-site] v0.12

### IAM Roles

Expand All @@ -65,3 +71,4 @@ following APIs enabled:
[event-project-log-entry-submodule]: ../../modules/event-project-log-entry
[repository-function-submodule-requirements]: ../../modules/repository-function/README.md#requirements
[repository-function-submodule]: ../../modules/repository-function
[terraform-site]: https://terraform.io/
2 changes: 1 addition & 1 deletion examples/automatic-labelling-from-repository/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ resource "google_compute_instance" "main" {
}

network_interface {
network = "default"
subnetwork = var.subnetwork
}

project = var.project_id
Expand Down
6 changes: 6 additions & 0 deletions examples/automatic-labelling-from-repository/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,9 @@ variable "zone" {
type = string
description = "The zone in which resources will be applied."
}

variable "subnetwork" {
type = string
description = "The name or self_link of the subnetwork to create compute instance in."
default = "default"
}
7 changes: 3 additions & 4 deletions examples/delete-vms-without-cmek/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,15 @@ this directory:
- `terraform apply` to apply the execution plan
- `terraform destroy` to destroy the infrastructure

[^]: (autogen_docs_start)

<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
## Inputs

| Name | Description | Type | Default | Required |
|------|-------------|:----:|:-----:|:-----:|
| project\_id | The ID of the project to which resources will be applied. | string | n/a | yes |
| region | The region in which resources will be applied. | string | n/a | yes |

[^]: (autogen_docs_end)
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->

## Requirements

Expand All @@ -40,7 +39,7 @@ must also be met.
The following software dependencies must be installed on the system
from which this module will be invoked:

- [Terraform][terraform-site] v0.11.Z
- [Terraform][terraform-site] v0.12

### IAM Roles

Expand Down
Loading