AWS Fundamentals Logo
AWS Fundamentals
AWS::Lightsail::StaticIp

Lightsail StaticIp

Resource Type definition for AWS::Lightsail::StaticIp

Properties

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

Filter:
PropertyTypeFlags
StaticIpName
string
RequiredCreate-only
AttachedTo
string

Return Values

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

AttributeTypeDescription
IpAddressstringThe static IP address.
IsAttachedbooleanA Boolean value indicating whether the static IP is attached.
StaticIpArnstring-

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

Resources:
  MyResource:
    Type: AWS::Lightsail::StaticIp
    Properties:
      StaticIpName: "my-staticipname"

Required IAM Permissions

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

create

lightsail:AllocateStaticIplightsail:AttachStaticIplightsail:DetachStaticIplightsail:GetInstancelightsail:GetStaticIplightsail:GetStaticIps

read

lightsail:GetStaticIplightsail:GetStaticIps

update

lightsail:AttachStaticIplightsail:DetachStaticIplightsail:GetInstancelightsail:GetStaticIplightsail:GetStaticIps

delete

lightsail:GetStaticIplightsail:GetStaticIpslightsail:ReleaseStaticIp

list

lightsail:GetStaticIps

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
Properties5
Required1
TaggingNot supported
Primary IDStaticIpName

Supported Operations

CreateReadUpdateDeleteList

Immutable After Creation

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

StaticIpName

External Links