Usage:
module "github_repo" {
source = "git::https://github.com/devops-adeel/terraform-gh-module.git?ref=v0.5.0"
application_name = "foo"
tfc_token = vault_terraform_cloud_secret_creds.default.token
template_type = "module"
repo_visibility = "public"
}
Requirements
No requirements.
Providers
Name | Version |
---|---|
github | n/a |
Modules
No modules.
Resources
Name | Type |
---|---|
github_actions_secret.default | resource |
github_branch_default.default | resource |
github_repository.default | resource |
github_repository_file.default | resource |
Inputs
Name | Description | Type | Default | Required |
---|---|---|---|---|
application_name | Name of the application/customer | string |
n/a | yes |
repo_visibility | Whether to allow the repo to be public, defaults to private. | string |
"private" |
no |
template_type | Template type determines which GH template to use, currently supported: [module , customer ] |
string |
"module" |
no |
tfc_token | The TFC Token required to run tf plan/apply from the pipeline. | string |
n/a | yes |
Outputs
Name | Description |
---|---|
github_git_clone_url | The git URL of the newly created GitHub Repo |
github_https_clone_url | The HTTPs URL of the newly created GitHub Repo |
github_repo_url | The Web URL of the newly created GitHub Repo |
github_ssh_clone_url | The SSH URL of the newly created GitHub Repo |
repo_name | A string of the form: orgname/reponame |