Skip to content

Terraform module to manage the following Terraform Cloud/Enterprise resource (tfe_registry_module)

License

Notifications You must be signed in to change notification settings

dhoppeIT/terraform-tfe-registry

Repository files navigation

terraform-tfe-registry

Terraform module to manage the following Terraform Cloud/Enterprise resource:

  • tfe_registry_module

Graph

Graph

Usage

Copy and paste into your Terraform configuration, insert the variables and run terraform init:

module "tfe_organization" {
  source  = "dhoppeIT/organization/tfe"
  version = "~> 0.1"

  name  = "dhoppeIT"
  email = "terraform@dhoppe.it"
}

module "tfe_oauth_client" {
  source  = "dhoppeIT/oauth_client/tfe"
  version = "~> 0.2"

  organization     = module.tfe_organization.name
  api_url          = "https://api.github.com"
  http_url         = "https://github.com"
  oauth_token      = "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"
  service_provider = "github"
}

module "tfe_registry" {
  source  = "dhoppeIT/registry/tfe"
  version = "~> 0.1"

  display_identifier = "dhoppeIT/terraform-tfe-registry"
  identifier         = "dhoppeIT/terraform-tfe-registry"
  oauth_token_id     = module.tfe_oauth_client.oauth_token_id
}

Requirements

Name Version
terraform >= 1.0
tfe ~> 0.26

Providers

Name Version
tfe 0.38.0

Modules

No modules.

Resources

Name Type
tfe_registry_module.default resource

Inputs

Name Description Type Default Required
display_identifier The display identifier for your VCS repository string n/a yes
identifier A reference to your VCS repository in the format / string n/a yes
oauth_token_id Token ID of the VCS Connection (OAuth Connection Token) to use string n/a yes

Outputs

Name Description
id The ID of the registry module
module_provider The provider of the registry module
name The name of registry module
organization The name of the organization associated with the registry module

Authors

Created and maintained by Dennis Hoppe.

License

Apache 2 licensed. See LICENSE for full details.