AWS Fundamentals Logo
AWS Fundamentals
AWS::Lightsail::Domain

Lightsail Domain

Resource Type definition for AWS::Lightsail::Domain

Properties

3 configurable properties. 1 required. Click a row to see details.

Filter:
PropertyTypeFlags
DomainName
string
RequiredCreate-only
DomainEntries
Array<DomainEntry>
Tags
Array<Tag>

Return Values

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

AttributeTypeDescription
ArnstringThe Amazon Resource Name (ARN) of the domain (read-only).
CreatedAtstringThe timestamp when the domain was created (read-only).
LocationobjectThe AWS Region and Availability Zone where the domain was created (read-only).
ResourceTypestringThe Lightsail resource type (read-only).
SupportCodestringThe support code. Include this code in your email to support when you have questions (read-only).

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

Resources:
  MyResource:
    Type: AWS::Lightsail::Domain
    Properties:
      DomainName: "my-domainname"
      Tags:
        - Key: Environment
          Value: Production

Required IAM Permissions

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

create

lightsail:CreateDomainlightsail:GetDomainlightsail:CreateDomainEntrylightsail:TagResource

read

lightsail:GetDomain

update

lightsail:GetDomainlightsail:CreateDomainEntrylightsail:DeleteDomainEntrylightsail:TagResourcelightsail:UntagResource

delete

lightsail:DeleteDomainlightsail:GetDomain

list

lightsail:GetDomains

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
Properties8
Required1
TaggingSupported
Primary IDDomainName

Supported Operations

CreateReadUpdateDeleteList

Immutable After Creation

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

DomainName

External Links