AWS::Lightsail::InstanceResource Type definition for AWS::Lightsail::Instance
12 configurable properties. 3 required. Click a row to see details.
| Property | Type | Flags |
|---|---|---|
BlueprintId | string | RequiredCreate-only |
BundleId | string | RequiredCreate-only |
InstanceName | string | RequiredCreate-only |
AddOns | Array<AddOn> | |
AvailabilityZone | string | Create-only |
Hardware | Hardware | |
KeyPairName | string | |
Location | Location | |
Networking | Networking | |
State | State | |
Tags | Array<Tag> | |
UserData | string | Write-only |
Values returned after the resource is created. Access these with Fn::GetAtt.
| Attribute | Type | Description |
|---|---|---|
InstanceArn | string | - |
Ipv6Addresses | Array<string> | IPv6 addresses of the instance |
IsStaticIp | boolean | Is the IP Address of the Instance is the static IP |
PrivateIpAddress | string | Private IP Address of the Instance |
PublicIpAddress | string | Public IP Address of the Instance |
ResourceType | string | Resource type of Lightsail instance. |
SshKeyName | string | SSH Key Name of the Lightsail instance. |
SupportCode | string | Support code to help identify any issues |
UserName | string | Username of the Lightsail instance. |
A minimal template with required properties and common optional ones.
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::Lightsail::Instance
Resources:
MyResource:
Type: AWS::Lightsail::Instance
Properties:
InstanceName: "my-instancename"
BlueprintId: "my-blueprintid"
BundleId: "my-bundleid"
Tags:
- Key: Environment
Value: ProductionPermissions CloudFormation needs in your IAM role to manage this resource.
lightsail:CreateInstanceslightsail:GetInstanceslightsail:EnableAddOnlightsail:GetInstancelightsail:DisableAddOnlightsail:PutInstancePublicPortslightsail:AttachDisklightsail:DetachDisklightsail:GetInstanceslightsail:GetInstancelightsail:GetInstanceslightsail:GetInstancelightsail:DeleteInstancelightsail:GetInstanceslightsail:GetInstanceslightsail:GetInstancelightsail:DeleteInstancelightsail:EnableAddOnlightsail:DisableAddOnlightsail:PutInstancePublicPortslightsail:AttachDisklightsail:DetachDiskOur bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to NewsletterInstanceNameThese properties cannot be changed after the resource is created. Updating them triggers a replacement.
InstanceNameBlueprintIdBundleIdAvailabilityZone