This is a simple example showing how Consul-Terraform-Sync can be used on OCI. It's a rather simplistic example, which will add backends to the designated OCI LB Backend Set designed to be used with the sample CTS OCI architecture in consul-testing-validation.
This has been designed to accompany the CTS on OCI architecture, found at consul-testing-validation CTS architecture. See consul-testing-validation CTS architecture for the instructions on using it in this topology.
To test this on your local machine, copy the inputs.tfvars.template
file to inputs.tfvars
and fill-in-the-blanks. Run it:
terraform init
terraform apply -var-file="inputs.tfvars"
terraform destroy -var-file="inputs.tfvars"
This will simulate adding a host to the existing backend set of the LB (notice that the services
variable is populated in the input.tfvars
file, simulating what Consul would be providing when used with CTS).
You must have an OCI account. Click here to create a new cloud account.
You need to have Consul setup on OCI. See consul-testing-validation for a sample topolgoy that this was built on. Feel free to deploy this topology and try it for yourself!
Name | Version |
---|---|
terraform | >= 0.14.0 |
oci | >= 4.39.0 |
Name | Version |
---|---|
oci | 4.44.0 |
No modules.
Name | Type |
---|---|
oci_load_balancer_backend.this | resource |
Name | Description | Type | Default | Required |
---|---|---|---|---|
be_set_name | The name of the LB Backend Set to use. | string |
n/a | yes |
fingerprint | n/a | any |
n/a | yes |
lb_id | The OCID of the OCI LB to use. | string |
n/a | yes |
private_key | n/a | string |
"" |
no |
private_key_password | n/a | any |
n/a | yes |
private_key_path | n/a | string |
"" |
no |
region | The OCI region to use. | string |
n/a | yes |
services | Consul services monitored by Consul-Terraform-Sync | map( |
n/a | yes |
tenancy_ocid | n/a | any |
n/a | yes |
user_ocid | n/a | any |
n/a | yes |
No outputs.
None at this time.
- Nothing at this time
This project is open source. Please submit your contributions by forking this repository and submitting a pull request! Oracle appreciates any contributions that are made by the open source community.
Copyright (c) 2024 Oracle and/or its affiliates.
Licensed under the Universal Permissive License (UPL), Version 1.0.
See LICENSE for more details.