Last updated
list all the lightsail key pairsimport a lightsail key pair with following details -
name - test1
key - <public_key_content>show details of 'key1' lightsail key pairdelete 'key1' lightsail key pairlist all the lightsail blueprintslist all the lightsail bundleslist all the lightsail VMscreate lightsail vms with following details -
name(s) - instance1, instance2
zone - eu-west-1a
blueprint - ubuntu_24_04
bundle - nano_3_0
ssh key - key1fetch details of 'instance 1' lightsail vmreplace firewall rules of 'instance 1' lightsail vm with following -
22|tcp|@CURRENT_IP
443|tcp|@CURRENT_IPstart 'instance 1' lightsail vmstop 'instance 1' lightsail vmreboot 'instance 1' lightsail vmdelete 'instance 1' lightsail vmlist lightsail static ipsallocate a lightsail static ipfetch details of 'static1' lightsail static ip attach 'static1' lightsail static ip to 'instance1' vmdetach 'static1' lightsail static iprelease 'static1' lightsail static ip