AWS Fundamentals Logo
AWS Fundamentals
AWS::ElasticLoadBalancingV2::LoadBalancer

ElasticLoadBalancingV2 LoadBalancer

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

Properties

14 configurable properties. Click a row to see details.

Filter:
PropertyTypeFlags
EnableCapacityReservationProvisionStabilize
boolean
Write-only
EnablePrefixForIpv6SourceNat
string
EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic
string
IpAddressType
string
Ipv4IpamPoolId
string
LoadBalancerAttributes
Array<LoadBalancerAttribute>
MinimumLoadBalancerCapacity
MinimumLoadBalancerCapacity
Name
string
Create-only
Scheme
string
Create-only
SecurityGroups
Array<string>
SubnetMappings
Array<SubnetMapping>
Subnets
Array<string>
Tags
Array<Tag>
Type
string
Create-only

Return Values

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

AttributeTypeDescription
CanonicalHostedZoneIDstring-
DNSNamestring-
LoadBalancerArnstring-
LoadBalancerFullNamestring-
LoadBalancerNamestring-

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::LoadBalancer

Resources:
  MyResource:
    Type: AWS::ElasticLoadBalancingV2::LoadBalancer
    Properties:
      Tags:
        - Key: Environment
          Value: Production
      Name: !Ref "AWS::StackName"

Required IAM Permissions

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

create

elasticloadbalancing:CreateLoadBalancerelasticloadbalancing:DescribeLoadBalancerselasticloadbalancing:ModifyLoadBalancerAttributeselasticloadbalancing:AddTagselasticloadbalancing:SetSecurityGroupsec2:DescribeIpamPools

delete

elasticloadbalancing:DescribeLoadBalancerselasticloadbalancing:DeleteLoadBalancer

list

elasticloadbalancing:DescribeLoadBalancers

read

elasticloadbalancing:DescribeLoadBalancerselasticloadbalancing:DescribeLoadBalancerAttributeselasticloadbalancing:DescribeCapacityReservationelasticloadbalancing:DescribeTags

update

elasticloadbalancing:ModifyLoadBalancerAttributeselasticloadbalancing:ModifyCapacityReservationelasticloadbalancing:SetSubnetselasticloadbalancing:SetIpAddressTypeelasticloadbalancing:ModifyIpPoolselasticloadbalancing:SetSecurityGroupselasticloadbalancing:AddTagselasticloadbalancing:RemoveTags

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
Properties19
Required0
TaggingSupported
Primary IDLoadBalancerArn

Supported Operations

CreateDeleteListReadUpdate

Immutable After Creation

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

NameTypeScheme

External Links