Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ekristen/terraform-provider-tls-utils

Terraform Provider for Various TLS Utilities
https://github.com/ekristen/terraform-provider-tls-utils

Last synced: about 2 months ago
JSON representation

Terraform Provider for Various TLS Utilities

Awesome Lists containing this project

README

        

# Terraform Provider - TLS Utils

At the moment this provides a single utility related to TLS which is `host_thumbprint` data source.

It allows the retrieving of a thumbprint of a certificate on a host.

## Build provider

Run the following command to build the provider

```shell
go build -o terraform-provider-tls-utils
```

## Local release build

```shell
go install github.com/goreleaser/goreleaser@latest
```

```shell
make release
```

You will find the releases in the `/dist` directory. You will need to rename the provider binary to `terraform-provider-tls-utils` and move the binary into [the appropriate subdirectory within the user plugins directory](https://learn.hashicorp.com/tutorials/terraform/provider-use?in=terraform/providers#install-hashicups-provider).

## Test sample configuration

First, build and install the provider.

```shell
make install
```

Then, navigate to the `examples` directory.

```shell
cd examples
```

Run the following command to initialize the workspace and apply the sample configuration.

```shell
terraform init && terraform apply
```

**Note:** you might have to remove the `.terraform.lock.hcl` file.