AWS Fundamentals Logo
AWS Fundamentals
AWS::Lightsail::Distribution

Lightsail Distribution

Resource Type definition for AWS::Lightsail::Distribution

Properties

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

Filter:
PropertyTypeFlags
BundleId
string
Required
DefaultCacheBehavior
CacheBehavior
Required
DistributionName
string
RequiredCreate-only
Origin
InputOrigin
Required
CacheBehaviors
Array<CacheBehaviorPerPath>
CacheBehaviorSettings
CacheSettings
CertificateName
string
IpAddressType
string
Create-only
IsEnabled
boolean
Tags
Array<Tag>

Return Values

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

AttributeTypeDescription
AbleToUpdateBundlebooleanIndicates whether the bundle that is currently applied to your distribution, specified using the distributionName parameter, can be changed to another bundle.
DistributionArnstring-
StatusstringThe status of the distribution.

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

Resources:
  MyResource:
    Type: AWS::Lightsail::Distribution
    Properties:
      DistributionName: "my-distributionname"
      BundleId: "my-bundleid"
      DefaultCacheBehavior: "value"
      Origin: "value"
      Tags:
        - Key: Environment
          Value: Production

Required IAM Permissions

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

create

lightsail:AttachCertificateToDistributionlightsail:CreateDistributionlightsail:DetachCertificateFromDistributionlightsail:GetCertificateslightsail:GetCertificateDetailslightsail:GetDistributionslightsail:TagResourcelightsail:UntagResource

read

lightsail:GetDistributions

update

lightsail:AttachCertificateToDistributionlightsail:DetachCertificateFromDistributionlightsail:GetCertificateslightsail:GetCertificateDetailslightsail:GetDistributionslightsail:TagResourcelightsail:UntagResourcelightsail:UpdateDistribution

delete

lightsail:DeleteDistributionlightsail:GetDistributions

list

lightsail:GetDistributions

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
Properties13
Required4
TaggingSupported
Primary IDDistributionName

Supported Operations

CreateReadUpdateDeleteList

Immutable After Creation

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

DistributionNameIpAddressType

External Links