Giter Site home page Giter Site logo

terraform-oci-cts-example's Introduction

CTS on OCI Example

License: UPL

Introduction

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.

Getting Started

Using with CTS

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.

Testing locally

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).

Prerequisites

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!

Requirements

Name Version
terraform >= 0.14.0
oci >= 4.39.0

Providers

Name Version
oci 4.44.0

Modules

No modules.

Resources

Name Type
oci_load_balancer_backend.this resource

Inputs

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(
object({
id = string
name = string
kind = string
address = string
port = number
meta = map(string)
tags = list(string)
namespace = string
status = string

node = string
node_id = string
node_address = string
node_datacenter = string
node_tagged_addresses = map(string)
node_meta = map(string)

cts_user_defined_meta = map(string)
})
)
n/a yes
tenancy_ocid n/a any n/a yes
user_ocid n/a any n/a yes

Outputs

No outputs.

Notes/Issues

None at this time.

URLs

  • Nothing at this time

Contributing

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.

License

Copyright (c) 2024 Oracle and/or its affiliates.

Licensed under the Universal Permissive License (UPL), Version 1.0.

See LICENSE for more details.

terraform-oci-cts-example's People

Contributors

timclegg avatar ttscoff avatar chrisbensen avatar

Stargazers

Thiago Francisco Dias avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.