Skip to content

cfn-modules/ecs-nlb-listener-and-target

Repository files navigation

cfn-modules: ECS NLB listener and target

ECS NLB listener and target.

Install

Install Node.js and npm first!

npm i @cfn-modules/ecs-nlb-listener-and-target

Usage

---
AWSTemplateFormatVersion: '2010-09-09'
Description: 'cfn-modules example'
Resources:
  Target:
    Type: 'AWS::CloudFormation::Stack'
    Properties:
      Parameters:
        NlbModule: !GetAtt 'Nlb.Outputs.StackName' # required
        VpcModule: !GetAtt 'Vpc.Outputs.StackName' # required
        Port: '80' # optional
        CertificateArn: '' # optional
        ClientSgModule: '' # optional
        DeregistrationDelayInSeconds: '60' # optional
        Protocol: 'TCP' # optional
      TemplateURL: './node_modules/@cfn-modules/ecs-nlb-listener-and-target/module.yml'

Examples

none

Related modules

Parameters

Name Description Default Required? Allowed values
NlbModule Stack name of nlb module yes
VpcModule Stack name of vpc module yes
Port The port on which the listener listens for requests 80 no
CertificateArn Amazon Resource Name (ARN) of the certificate to associate with the listener no
ClientSgModule Stack name of client-sg module where traffic is allowed from on port $Port to the listener (requires NLB Scheme := internal) no
DeregistrationDelayInSeconds The amount of time, in seconds, for Elastic Load Balancing to wait before changing the state of a deregistering target from draining to unused 60 no 0-3600
Protocol The protocol for connections from clients to the load balancer. TCP no [TCP, UDP, TCP_UDP]

About

ECS NLB listener and target

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •