GithubHelp home page GithubHelp logo

abtreece / terraform-aws-listenerrule-nia Goto Github PK

View Code? Open in Web Editor NEW

This project forked from joatmon08/terraform-aws-listenerrule-nia

0.0 0.0 0.0 111 KB

Consul-Terraform-Sync Module for AWS Application Load Balancer Listener Rules

Home Page: https://registry.terraform.io/modules/joatmon08/listenerrule-nia/aws/latest

License: Mozilla Public License 2.0

Go 5.15% HCL 94.85%

terraform-aws-listenerrule-nia's Introduction

terraform-aws-listenerrule-nia

This module for Consul Terraform Sync creates a listener rule to be added to an application load balancer. The listener rules offer a way to change weights between blue and green instances of application.

The module register targets by IP address to account for multi-region load balancing.

Note: The module currently parses the DNS name of the node from Consul to register the primary IP address with the target group. This is because instances can have multiple IP addresses on different interfaces. Unless you bind Consul clients to the primary interface or the IP addresses on other interfaces are routable, you might have some connectivity issues. This is particularly the case with EKS.

Prerequisites

Requirements

Name Version
terraform >=1.0
aws >=3.55

Providers

Name Version
aws 3.55.0

Modules

No modules.

Resources

Name Type
aws_lb_listener_rule.app_canary resource
aws_lb_target_group.canary resource
aws_lb_target_group_attachment.app_canary resource

Inputs

Name Description Type Default Required
blue_target_group_arn ARN of blue target group (existing target group with working application) string n/a yes
enable_health_check Enable health checking for target group bool true no
enable_stickiness Enable stickiness bool false no
green_weight Percentage of traffic to send to green deployment number 0 no
health_check_matcher HTTP codes for health check string "200" no
health_check_path Path of health check for applications string "/health" no
listener_arn ARN of listener to update string n/a yes
listener_rule_priority Priority of listener rule between 1 to 50000 number 1 no
service_kind Kind of Consul service. Can be ingress-gateway, terminating-gateway. string "" no
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
stickiness_duration Duration of stickness in seconds number 600 no
vpc_id ID of the VPC for the target group string n/a yes

Outputs

Name Description
listener_rule_arn n/a
target_group_arn n/a

terraform-aws-listenerrule-nia's People

Contributors

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