tfe_registry_provider

Manages public and private providers in the private registry.

Example Usage

Create private provider:

resource "tfe_organization" "example" {
  name  = "my-org-name"
  email = "admin@company.com"
}

resource "tfe_registry_provider" "example" {
  organization = tfe_organization.example.name

  name = "my-provider"
}

Create public provider:

resource "tfe_organization" "example" {
  name  = "my-org-name"
  email = "admin@company.com"
}

resource "tfe_registry_provider" "example" {
  organization = tfe_organization.example.name

  registry_name = "public"
  namespace     = "hashicorp"
  name          = "aws"
}

Argument Reference

The following arguments are supported:

Attributes Reference

Import

Providers can be imported; use <ORGANIZATION>/<REGISTRY NAME>/<NAMESPACE>/<PROVIDER NAME> as the import ID.

For example a private provider:

terraform import tfe_registry_provider.example my-org-name/private/my-org-name/my-provider

Or a public provider:

terraform import tfe_registry_provider.example my-org-name/public/hashicorp/aws