Lightsail

1. Listing lightsail VMs

Required permissions

  • lightsail:GetInstances

Prompt examples

Copy

list all the lightsail vms

Getting details of a lightsail vm

Required permissions

  • lightsail:GetInstance

Prompt examples

Copy

get details of '<vm_name>' lightsail vm

or 

show details of '<vm_name>' lightsail vm

Replacing firewall rules for a lightsail vm

Required permissions

  • lightsail:PutInstancePublicPorts

Prompt examples

Copy

replace firewall rules of '<vm_name>' lightsail vm with following -
<port>|<protocol>|<one or more ipv4/ipv6 ips without suffix (e.g. /32, /24 etc) separated by comma>

For example -
replace firewall rules of 'abc' lightsail vm with following -
22|tcp|<ipv4_1>,<ipv6_1>
443|tcp|<ipv4_1>,<ipv6_1>

Starting/stopping/rebooting a lightsail vm

Required permissions

  • lightsail:StartInstance

  • lightsail:StopInstance

  • lightsail:RebootInstance

Prompt examples

Copy

start '<vm_name>' lightsail vm

stop '<vm_name>' lightsail vm

reboot '<vm_name>' lightsail vm

Last updated