AWS::ElasticLoadBalancingV2::LoadBalancerSpecifies an Application Load Balancer, a Network Load Balancer, or a Gateway Load Balancer.
14 configurable properties. Click a row to see details.
| Property | Type | Flags |
|---|---|---|
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 |
Values returned after the resource is created. Access these with Fn::GetAtt.
| Attribute | Type | Description |
|---|---|---|
CanonicalHostedZoneID | string | - |
DNSName | string | - |
LoadBalancerArn | string | - |
LoadBalancerFullName | string | - |
LoadBalancerName | string | - |
A minimal template with required properties and common optional ones.
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"Permissions CloudFormation needs in your IAM role to manage this resource.
elasticloadbalancing:CreateLoadBalancerelasticloadbalancing:DescribeLoadBalancerselasticloadbalancing:ModifyLoadBalancerAttributeselasticloadbalancing:AddTagselasticloadbalancing:SetSecurityGroupsec2:DescribeIpamPoolselasticloadbalancing:DescribeLoadBalancerselasticloadbalancing:DeleteLoadBalancerelasticloadbalancing:DescribeLoadBalancerselasticloadbalancing:DescribeLoadBalancerselasticloadbalancing:DescribeLoadBalancerAttributeselasticloadbalancing:DescribeCapacityReservationelasticloadbalancing:DescribeTagselasticloadbalancing:ModifyLoadBalancerAttributeselasticloadbalancing:ModifyCapacityReservationelasticloadbalancing:SetSubnetselasticloadbalancing:SetIpAddressTypeelasticloadbalancing:ModifyIpPoolselasticloadbalancing:SetSecurityGroupselasticloadbalancing:AddTagselasticloadbalancing:RemoveTagsEverything you need to know about ElasticLoadBalancingV2 on one page. HD quality, print-friendly.
Download Free InfographicLoadBalancerArnThese properties cannot be changed after the resource is created. Updating them triggers a replacement.
NameTypeScheme