AWS Fundamentals Logo
AWS Fundamentals
AWS::ElasticLoadBalancingV2::Listener

ElasticLoadBalancingV2 Listener

Specifies a listener for an Application Load Balancer, Network Load Balancer, or Gateway Load Balancer.

Properties

10 configurable properties. 2 required. Click a row to see details.

Filter:
PropertyTypeFlags
DefaultActions
Array<Action>
Required
LoadBalancerArn
string
RequiredCreate-only
AlpnPolicy
Array<string>
Certificates
Array<Certificate>
ListenerAttributes
Array<ListenerAttribute>
MutualAuthentication
MutualAuthentication
Port
integer
Protocol
string
SslPolicy
string
Tags
Array<Tag>

Return Values

Values returned after the resource is created. Access these with Fn::GetAtt.

AttributeTypeDescription
ListenerArnstring-

Sample CloudFormation Template

A minimal template with required properties and common optional ones.

template.yaml
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::ElasticLoadBalancingV2::Listener

Resources:
  MyResource:
    Type: AWS::ElasticLoadBalancingV2::Listener
    Properties:
      LoadBalancerArn: "arn:aws:service:region:account:resource"
      DefaultActions: []
      Tags:
        - Key: Environment
          Value: Production

Required IAM Permissions

Permissions CloudFormation needs in your IAM role to manage this resource.

read

elasticloadbalancing:DescribeListenerselasticloadbalancing:DescribeListenerAttributeselasticloadbalancing:DescribeTags

create

elasticloadbalancing:CreateListenerelasticloadbalancing:DescribeListenerscognito-idp:DescribeUserPoolClientelasticloadbalancing:AddTagselasticloadbalancing:ModifyListenerAttributes

update

elasticloadbalancing:ModifyListenerelasticloadbalancing:DescribeListenerscognito-idp:DescribeUserPoolClientelasticloadbalancing:AddTagselasticloadbalancing:RemoveTagselasticloadbalancing:DescribeTagselasticloadbalancing:ModifyListenerAttributeselasticloadbalancing:DescribeListenerAttributes

list

elasticloadbalancing:DescribeListeners

delete

elasticloadbalancing:DeleteListenerelasticloadbalancing:DescribeListeners

Get the ElasticLoadBalancingV2 Cheat Sheet

Everything you need to know about ElasticLoadBalancingV2 on one page. HD quality, print-friendly.

Download Free Infographic

Quick Facts

ServiceElasticLoadBalancingV2
Properties11
Required2
TaggingSupported
Primary IDListenerArn

Supported Operations

ReadCreateUpdateListDelete

Immutable After Creation

These properties cannot be changed after the resource is created. Updating them triggers a replacement.

LoadBalancerArn

External Links