AWS Fundamentals Logo
AWS Fundamentals
AWS::Lightsail::LoadBalancer

Lightsail LoadBalancer

Resource Type definition for AWS::Lightsail::LoadBalancer

Properties

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

Filter:
PropertyTypeFlags
InstancePort
integer
RequiredCreate-only
LoadBalancerName
string
RequiredCreate-only
AttachedInstances
Array<string>
HealthCheckPath
string
IpAddressType
string
Create-only
SessionStickinessEnabled
boolean
SessionStickinessLBCookieDurationSeconds
string
Tags
Array<Tag>
TlsPolicyName
string

Return Values

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

AttributeTypeDescription
LoadBalancerArnstring-

Sample CloudFormation Template

A minimal template with required properties and common optional ones.

template.yaml
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::Lightsail::LoadBalancer

Resources:
  MyResource:
    Type: AWS::Lightsail::LoadBalancer
    Properties:
      LoadBalancerName: "my-loadbalancername"
      InstancePort: 1
      Tags:
        - Key: Environment
          Value: Production

Required IAM Permissions

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

create

lightsail:CreateLoadBalancerlightsail:GetLoadBalancerlightsail:GetLoadBalancerslightsail:GetInstancelightsail:AttachInstancesToLoadBalancerlightsail:DetachInstancesFromLoadBalancerlightsail:UpdateLoadBalancerAttributelightsail:TagResource

read

lightsail:GetLoadBalancerlightsail:GetLoadBalancers

update

lightsail:GetLoadBalancerlightsail:GetLoadBalancerslightsail:GetInstancelightsail:AttachInstancesToLoadBalancerlightsail:DetachInstancesFromLoadBalancerlightsail:UpdateLoadBalancerAttributelightsail:TagResourcelightsail:UntagResource

delete

lightsail:DeleteLoadBalancerlightsail:GetLoadBalancerlightsail:GetLoadBalancers

list

lightsail:GetLoadBalancers

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter

Quick Facts

ServiceLightsail
Properties10
Required2
TaggingSupported
Primary IDLoadBalancerName

Supported Operations

CreateReadUpdateDeleteList

Immutable After Creation

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

LoadBalancerNameInstancePortIpAddressType

External Links