Skip to content

altissimo-hq/terraform-google-cloudbuildv2-connection

Repository files navigation

Requirements

Name Version
external >= 2.2.0
google >= 4.60.0

Providers

Name Version
google >= 4.60.0
google-beta n/a

Modules

No modules.

Resources

Name Type
google-beta_google_cloudbuildv2_connection.github resource
google-beta_google_cloudbuildv2_repository.repositories resource
google_secret_manager_secret.github_auth_token resource
google_secret_manager_secret_iam_member.clouduild_github_auth_token resource
google_client_config.current data source
google_project.project data source
google_secret_manager_secret_version.github_auth_token data source

Inputs

Name Description Type Default Required
github_app_installation_id Installation ID for the Cloud Build GitHub App

For personal accounts, go to https://github.com/settings/installations
and click on the Cloud Build app. Retrieve the installation ID from the URL.

For organization accounts, go to
https://github.com/organizations/[ORGANIZATION]/settings/installations
and click on the Cloud Build app. Retrieve the installation ID from the URL.
number n/a yes
github_login GitHub login of the user or organization that owns the repositories string n/a yes
project Google Project ID in which to create the Cloud Build resources string n/a yes
create_secret Whether to create the GitHub OAuth Token Secret bool false no
github_connection_name Name of the Cloud Build v2 Connection to GitHub string "github" no
oauth_token_secret Name of the GitHub OAuth Token Secret string "github-token" no
oauth_token_secret_version Secret Version ID of the GitHub OAuth Token string "latest" no
region Region of the Cloud Build v2 Connection to GitHub string "" no
repositories List of GitHub repositories to create Cloud Build v2 Repositories for list(string) [] no
secret_project Google Project ID in which the GitHub OAuth Token Secret is stored string null no

Outputs

Name Description
oauth_token_secret_version Secret Version ID of the GitHub OAuth Token
repository_ids Map of Cloud Build v2 Repositories

Terraform Docs

To Manually Generate Terraform Documentation for this Module, run the following command from the root of the Module's Repository:

docker run --rm --volume "$(pwd):/terraform-docs" -u $(id -u) quay.io/terraform-docs/terraform-docs:latest --output-file README.md --output-mode inject /terraform-docs