Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix install instructions #52

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 2 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/<VERSION>/<ARCH>/terraform-provider-appoptics` (Replace `<VERSION>` with the version downloaded and `<ARCH>` 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/<VERSION>/<ARCH>/terraform-provider-appoptics` (Replace `<VERSION>` with the version downloaded and `<ARCH>` 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/<VERSION>/<ARCH>/terraform-provider-appoptics
chmod 755 $HOME/.terraform.d/plugins/registry.terraform.io/hashicorp/appoptics/<VERSION>/<ARCH>/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.
8 changes: 0 additions & 8 deletions examples/versions.tf

This file was deleted.