Lightsail

Supported operations

Operation
Permissions Required
Example Prompts

List key pairs

lightsail:GetKeyPairs

list all the lightsail key pairs

Import a key pair

lightsail:ImportKeyPair

import a lightsail key pair with following details -
name - test1
key - <public_key_content>

Get details of a key pair

lightsail:GetKeyPair

show details of 'key1' lightsail key pair

Delete a key pair

lightsail:DeleteKeyPair

delete 'key1' lightsail key pair

List blueprints

lightsail:GetBlueprints

list all the lightsail blueprints

List bundles

lightsail:GetBundles

list all the lightsail bundles

List instances

lightsail:GetInstances

list all the lightsail VMs

Create instances

lightsail:CreateInstances

create lightsail vms with following details -
name(s) - instance1, instance2
zone - eu-west-1a
blueprint - ubuntu_24_04
bundle - nano_3_0
ssh key - key1

Get instance details

lightsail:GetInstance

fetch details of 'instance 1' lightsail vm

Update instance firewall rules

lightsail:PutInstancePublicPorts

replace firewall rules of 'instance 1' lightsail vm with following -
22|tcp|@CURRENT_IP
443|tcp|@CURRENT_IP

Start instance

lightsail:StartInstance

start 'instance 1' lightsail vm

Stop instance

lightsail:StopInstance

stop 'instance 1' lightsail vm

Reboot instance

lightsail:RebootInstance

reboot 'instance 1' lightsail vm

Delete instance

lightsail:DeleteInstance

delete 'instance 1' lightsail vm

List static ips

lightsail:GetStaticIps

list lightsail static ips

Allocate static ip

lightsail:AllocateStaticIp

allocate a lightsail static ip

Get static ip details

lightsail:GetStaticIp

fetch details of 'static1' lightsail static ip 

Attach static ip

lightsail:AttachStaticIp

attach 'static1' lightsail static ip to 'instance1' vm

Detach static ip

lightsail:DetachStaticIp

detach 'static1' lightsail static ip

Release static ip

lightsail:ReleaseStaticIp

release 'static1' lightsail static ip

Last updated

Was this helpful?