Skip to content

A terraform module to create a new repository for a project and link Cloudbuild with it.

License

Notifications You must be signed in to change notification settings

schostin/streamedcon2020-terraform-module-github-actions-gcloud

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Github Cloud Build Terraform Module

A terraform module to create a new repository in github and link a google service account to it.

Usage

ToDo

Terraform Module

Requirements

Name Version
terraform >= 0.12.28
github >= 2.9.0
google >= 3.28.0
template >= 2.1.2

Providers

Name Version
github >= 2.9.0
google >= 3.28.0
template >= 2.1.2

Inputs

Name Description Type Default Required
bucket The full qualified name of the bucket to store the terraform states string n/a yes
description The description of the repository to create string "" no
domain The domain used for templating. string n/a yes
github_owner The github organization or user under which the repository will be created string n/a yes
github_template_owner The github organization or user that hosts the template for this repository string n/a yes
github_template_repository The github repository name that hosts the templates string n/a yes
github_token The github token to authenticate against the Github API string n/a yes
name The name of the repository to create string n/a yes
org_id The organization id under which the project was created. string n/a yes
project_id The project id for which the new repository shall be created. string n/a yes
service_account_email The service account that github actions will use within the repository string n/a yes

Outputs

Name Description
repository_html_url The HTML Url of the repository
repository_http_clone_url The HTML Clone Url of the repository
repository_name The full name of the created repository in the form owner/repository_name

Tools

TFLint

I am using TFLint in version v0.17.0 to lint the terraform files for basic stuff. The implemented and activated rules can be found in the file .tflint.hcl. Documentation about those rules can be found here.

TFLint currently supports AWS resources and terraform resources out of the box. Google Cloud support is being worked on. Contributions are welcome here.

About

A terraform module to create a new repository for a project and link Cloudbuild with it.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages