Lightsail
Supported operations
List key pairs
lightsail:GetKeyPairs
list all the lightsail key pairsImport 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 pairDelete a key pair
lightsail:DeleteKeyPair
delete 'key1' lightsail key pairList blueprints
lightsail:GetBlueprints
list all the lightsail blueprintsList bundles
lightsail:GetBundles
list all the lightsail bundlesList instances
lightsail:GetInstances
list all the lightsail VMsCreate 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 - key1Get instance details
lightsail:GetInstance
fetch details of 'instance 1' lightsail vmUpdate instance firewall rules
lightsail:PutInstancePublicPorts
replace firewall rules of 'instance 1' lightsail vm with following -
22|tcp|@CURRENT_IP
443|tcp|@CURRENT_IPStart instance
lightsail:StartInstance
start 'instance 1' lightsail vmStop instance
lightsail:StopInstance
stop 'instance 1' lightsail vmReboot instance
lightsail:RebootInstance
reboot 'instance 1' lightsail vmDelete instance
lightsail:DeleteInstance
delete 'instance 1' lightsail vmList static ips
lightsail:GetStaticIps
list lightsail static ipsAllocate static ip
lightsail:AllocateStaticIp
allocate a lightsail static ipGet static ip details
lightsail:GetStaticIp
fetch details of 'static1' lightsail static ip Attach static ip
lightsail:AttachStaticIp
attach 'static1' lightsail static ip to 'instance1' vmDetach static ip
lightsail:DetachStaticIp
detach 'static1' lightsail static ipRelease static ip
lightsail:ReleaseStaticIp
release 'static1' lightsail static ipLast updated
Was this helpful?