https://github.com/uptycslabs/terraform-provider-uptycs
https://github.com/uptycslabs/terraform-provider-uptycs
golang hacktoberfest hacktoberfest-accepted osquery terraform-provider
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/uptycslabs/terraform-provider-uptycs
- Owner: uptycslabs
- License: mit
- Created: 2022-06-15T16:42:29.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-12-18T23:38:29.000Z (over 2 years ago)
- Last Synced: 2024-06-21T01:42:10.462Z (about 2 years ago)
- Topics: golang, hacktoberfest, hacktoberfest-accepted, osquery, terraform-provider
- Language: Go
- Homepage:
- Size: 355 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Terraform Provider Uptycs
## Auth ##
This provider allows env var auth as well as provider{} auth inline
```
export UPTYCS_CUSTOMER_ID="your-customer-id"
export UPTYCS_API_SECRET="your-api-secret"
export UPTYCS_API_KEY="your-api-key"
export UPTYCS_HOST=https://test.uptycs.io
```
Inline:
```
provider "uptycs" {
host = "https://test.uptycs.io"
customer_id = "your-customer-id"
api_key = "your-api-key"
api_secret = "your-api-secret"
}
```
## Build provider
Run the following command to build the provider
```shell
$ go build -o terraform-provider-uptycs
```
## Test sample configuration
First, bump the version so that its unique and won't pull from the registry:
```shell
$ vim Makefile
```
Next, build and install the provider.
```shell
$ make install
```
Then, navigate to the `examples` directory.
```shell
$ cd examples
```
To run this locally you'll need to add a `~/.terraformrc` file with:
```
provider_installation {
filesystem_mirror {
path = "/Users/marcus.young/.terraform.d/plugins"
include = [
"github.com/uptycslabs/uptycs",
"registry.terraform.io/uptycslabs/uptycs",
]
}
direct {
exclude = ["uptycslabs/uptycs"]
}
}
```
Run the following command to initialize the workspace and apply the sample configuration.
```shell
$ rm -rf .terraform .terraform.lock.hcl
$ terraform init
$ export UPTYCS_API_KEY="your-api-key"
$ export UPTYCS_API_SECRET="your-api-secret"
$ terraform plan
```