From 0275de13412c9ad4531f62ccdb4e5a6db83d1123 Mon Sep 17 00:00:00 2001 From: Farzad Battiwalla Date: Fri, 19 Aug 2022 12:57:57 -0400 Subject: [PATCH 1/2] Fix install instructions --- README.md | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 754c026..e692868 100644 --- a/README.md +++ b/README.md @@ -14,26 +14,12 @@ See `example.tf` [in this repo](https://github.com/appoptics/terraform-provider- ### Installing * Grab the latest release binary from the [Releases page](https://github.com/appoptics/terraform-provider-appoptics/releases). -* Extract and place the binary into `$HOME/.terraform.d/plugins/solarwinds.com/appopticsprovider/appoptics///terraform-provider-appoptics` (Replace `` with the version downloaded and `` with the machine architecture (eg. `darwin_amd64` or `darwin_arm64`) +* Extract and place the binary into `$HOME/.terraform.d/plugins/registry.terraform.io/hashicorp/appoptics///terraform-provider-appoptics` (Replace `` with the version downloaded and `` with the machine architecture (eg. `darwin_amd64` or `darwin_arm64`) * Set the execute flag on the binary ``` -chmod 755 $HOME/.terraform.d/plugins/solarwinds.com/appopticsprovider/appoptics///terraform-provider-appoptics +chmod 755 $HOME/.terraform.d/plugins/registry.terraform.io/hashicorp/appoptics///terraform-provider-appoptics ``` * You should now be able to write TF code for AppOptics alongside the rest of your infrastructure code -### Usage Notes -In order for the provider to work in a module, you need to add a required_providers block in your module as such: -```hcl -terraform { - required_providers { - appoptics = { - source = "solarwinds.com/appopticsprovider/appoptics" - version = ">= 0.5.1" - } - } -} -``` -This needs to be done because this provider has not been published to the Terraform registry, which is the default location that Terraform will look in when searching for providers. - ### Issues/Bugs Please report bugs and request enhancements in the [Issues area](https://github.com/appoptics/terraform-provider-appoptics/issues) of this repo. From ff4133c1b8f11994ad132810a86f430495999a71 Mon Sep 17 00:00:00 2001 From: Farzad Battiwalla Date: Fri, 19 Aug 2022 12:59:28 -0400 Subject: [PATCH 2/2] Delete versions.tf Removing as it's not needed --- examples/versions.tf | 8 -------- 1 file changed, 8 deletions(-) delete mode 100644 examples/versions.tf diff --git a/examples/versions.tf b/examples/versions.tf deleted file mode 100644 index b2fd00f..0000000 --- a/examples/versions.tf +++ /dev/null @@ -1,8 +0,0 @@ -terraform { - required_providers { - appoptics = { - version = "~> 1.0.0" - source = "solarwinds.com/appopticsprovider/appoptics" - } - } -}