No description
  • Go 98.9%
  • HCL 0.6%
  • Shell 0.3%
  • Makefile 0.2%
Find a file
OpenTofu Core Development Team 4123ad2836 Apply GitHub workflow changes
2026-04-05 05:01:58 +00:00
.github Apply GitHub workflow changes 2026-04-05 05:01:58 +00:00
.release fix: suppress CVEs (#471) 2025-10-17 13:10:53 +05:30
assets Update Readme with more relevant links and description (#295) 2022-02-17 18:02:58 +01:00
consul Aws auth method for provider login to consul (#477) 2026-01-12 07:47:36 +05:30
docs Aws auth method for provider login to consul (#477) 2026-01-12 07:47:36 +05:30
examples Update test matrix to reflect latest Consul releases (#411) 2024-08-01 14:29:06 -04:00
scripts [COMPLIANCE] Add Copyright and License Headers (#333) 2023-02-20 13:31:48 +01:00
templates update compatibility matrix between TF consul provider and consul in index.md template (#455) 2025-09-17 11:54:48 +05:30
version updated version to reelase version 1.23.0 2026-01-29 17:00:28 +05:30
.copywrite.hcl [COMPLIANCE] Add Copyright and License Headers (#353) 2023-10-08 11:25:19 -07:00
.gitignore Add consul_license resource (#173) 2020-01-13 14:52:09 +01:00
.go-version update: go version to 1.25.2 (#464) 2025-10-14 14:42:50 +05:30
.goreleaser.yml [COMPLIANCE] Add Copyright and License Headers (#333) 2023-02-20 13:31:48 +01:00
CHANGELOG.md Add Go 1.25.8 to changelog 2026-04-01 21:51:04 +05:30
GNUmakefile Fix handling of partition in consul_config_entry (#300) 2022-04-11 14:29:30 +02:00
go.mod CSL-13267: update gRPC-Go for SECVULN-40801 2026-04-01 21:28:32 +05:30
go.sum CSL-13267: update gRPC-Go for SECVULN-40801 2026-04-01 21:28:32 +05:30
LICENSE [COMPLIANCE] Add Copyright and License Headers (#353) 2023-10-08 11:25:19 -07:00
main.go [COMPLIANCE] Add Copyright and License Headers (#333) 2023-02-20 13:31:48 +01:00
README.md update compatibility matrix between TF consul provider and consul in index.md template (#455) 2025-09-17 11:54:48 +05:30
terraform-registry-manifest.json Migrate Provider Releases from TeamCity to GitHub Actions (#301) 2022-04-11 14:42:00 +02:00

Consul logo Consul Terraform Provider

Discuss Gitter chat

Maintainers

This provider plugin is maintained by the Consul team at HashiCorp.

Compatibility

The Consul Terraform provider uses features of the latest version of Consul. Some resources may not be supported by older versions of Consul.

The known compatibility between this provider and Consul is:

Terraform provider version Consul version
2.22.0 >= 1.19.0
2.21.0 >= 1.17.0
2.20.0 >= 1.17.0
2.19.0 >= 1.17.0
2.18.0 >= 1.16.0

Requirements

Building The Provider

  1. Clone the repository
  2. Enter the repository directory
  3. Build the provider using the Go install command:
go install

Developing the Provider

If you wish to work on the provider, you'll first need Go installed on your machine (see Requirements above).

To compile the provider, run go install. This will build the provider and put the provider binary in the $GOPATH/bin directory.

Running the tests

In order to test the provider, you can simply run make test.

make test

In order to run the full suite of Acceptance tests, run make testacc. This should be performed before merging or opening pull requests.

The acceptance test will automatically look for a consul binary in the computer to start a development server. The binary used by the acceptance tests can be specified by setting the CONSUL_TEST_BINARY environment variable.

make testacc

Documentation

Full, comprehensive documentation is available on the Terraform Registry:

https://registry.terraform.io/providers/hashicorp/consul/latest/docs

If you wish to contribute to the documentation, the source can be found in this repository under website/docs/. To preview documentation changes prior to submitting a pull request, please use the Terraform Registry's doc preview tool.