Skip to content

Instantly share code, notes, and snippets.

@straubt1
Last active December 8, 2020 17:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save straubt1/c9fa1cdf96725c97cdef1cd5d0e9c0ea to your computer and use it in GitHub Desktop.
Save straubt1/c9fa1cdf96725c97cdef1cd5d0e9c0ea to your computer and use it in GitHub Desktop.
TFE with Custom Provider in Bundle

Terraform Bundle

terraform is 0.13.5

.
├── plugins
│   └── registry.terraform.io
│       ├── hashicorp
│       │   └── pshdns
│       │       └── 2.1.2
│       │           └── linux_amd64
│       │               └── terraform-provider-pshdns_v2.1.2_x4
│       └── infra
│           └── pshdns
│               └── 2.1.2
│                   └── linux_amd64
│                       └── terraform-provider-pshdns_v2.1.2_x4
└── terraform

12 directories, 6 files

Note: Uploaded to TFE as "0.13.5-customrprovider" and assigned to the Workspace

Locally

terraform.d

.
├── plugins
│   └── registry.terraform.io
│       ├── hashicorp
│       │   └── pshdns
│       │       └── 2.1.2
│       │           ├── darwin_amd64
│       │           │   └── terraform-provider-pshdns_v2.1.2_x5
│       │           └── linux_amd64
│       │               └── terraform-provider-pshdns_v2.1.2_x4
│       └── infra
│           └── pshdns
│               └── 2.1.2
│                   ├── darwin_amd64
│                   │   └── terraform-provider-pshdns_v2.1.2_x5
│                   └── linux_amd64
│                       └── terraform-provider-pshdns_v2.1.2_x4
└── terraform.tfstate

12 directories, 5 files

CLI Workflow

  required_providers {
    pshdns = {
      source = "infra/pshdns"
    }
  }
$ terraform init

2020/12/08 10:53:16 [TRACE] getproviders.SearchLocalDirectory: .terraform/plugins is a symlink to .terraform/plugins
2020/12/08 10:53:16 [TRACE] getproviders.SearchLocalDirectory: found registry.terraform.io/infra/pshdns v2.1.2 for darwin_amd64 at .terraform/plugins/registry.terraform.io/infra/pshdns/2.1.2/darwin_amd64
$ terraform apply

Preparing the remote apply...

To view this run in a browser, visit:
https://firefly.tfe.rocks/app/skilled-sunbird/custom-13-test/runs/run-EjDxVyiKZKdhrJ72

Waiting for the plan to start...

Terraform v0.13.5

...



2020/12/08 16:55:44 [DEBUG] Service discovery for firefly.tfe.rocks at https://firefly.tfe.rocks/.well-known/terraform.json
2020/12/08 16:55:44 [TRACE] HTTP client GET request to https://firefly.tfe.rocks/.well-known/terraform.json
2020/12/08 16:55:44 [TRACE] Meta.Backend: instantiated backend of type *remote.Remote
2020/12/08 16:55:44 [TRACE] providercache.fillMetaCache: scanning directory .terraform/plugins
2020/12/08 16:55:44 [TRACE] getproviders.SearchLocalDirectory: .terraform/plugins is a symlink to .terraform/plugins
2020/12/08 16:55:44 [TRACE] getproviders.SearchLocalDirectory: found registry.terraform.io/hashicorp/pshdns v2.1.2 for linux_amd64 at .terraform/plugins/registry.terraform.io/hashicorp/pshdns/2.1.2/linux_amd64
2020/12/08 16:55:44 [TRACE] providercache.fillMetaCache: including .terraform/plugins/registry.terraform.io/hashicorp/pshdns/2.1.2/linux_amd64 as a candidate package for registry.terraform.io/hashicorp/pshdns 2.1.2

...

No changes. Infrastructure is up-to-date.

Try again in the "hashicorp" namespace

  required_providers {
    pshdns = {
      source = "hashicorp/pshdns"
    }
  }
$ terraform apply

Preparing the remote apply...

To view this run in a browser, visit:
https://firefly.tfe.rocks/app/skilled-sunbird/custom-13-test/runs/run-VcV2Di9vaErP4QQG

Waiting for the plan to start...

Terraform v0.13.5

...

2020/12/08 16:58:45 [DEBUG] Service discovery for firefly.tfe.rocks at https://firefly.tfe.rocks/.well-known/terraform.json
2020/12/08 16:58:45 [TRACE] HTTP client GET request to https://firefly.tfe.rocks/.well-known/terraform.json
2020/12/08 16:58:45 [TRACE] Meta.Backend: instantiated backend of type *remote.Remote
2020/12/08 16:58:45 [TRACE] providercache.fillMetaCache: scanning directory .terraform/plugins
2020/12/08 16:58:45 [TRACE] getproviders.SearchLocalDirectory: .terraform/plugins is a symlink to .terraform/plugins
2020/12/08 16:58:45 [TRACE] getproviders.SearchLocalDirectory: found registry.terraform.io/infra/pshdns v2.1.2 for linux_amd64 at .terraform/plugins/registry.terraform.io/infra/pshdns/2.1.2/linux_amd64
2020/12/08 16:58:45 [TRACE] providercache.fillMetaCache: including .terraform/plugins/registry.terraform.io/infra/pshdns/2.1.2/linux_amd64 as a candidate package for registry.terraform.io/infra/pshdns 2.1.2

...

No changes. Infrastructure is up-to-date.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment