> For the complete documentation index, see [llms.txt](https://docs.mechcloud.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mechcloud.io/ai-agents/aws-agent/copy-of-lightsail.md).

# Copy of Lightsail

#### 1. Listing lightsail VMs <a href="#heading-listing-lightsail-vms" id="heading-listing-lightsail-vms"></a>

**Required permissions**

* lightsail:GetInstances

**Prompt examples**

```plaintext
list all the lightsail vms
```

#### Getting details of a lightsail vm <a href="#heading-getting-details-of-a-lightsail-vm" id="heading-getting-details-of-a-lightsail-vm"></a>

**Required permissions**

* lightsail:GetInstance

**Prompt examples**

```plaintext
get details of '<vm_name>' lightsail vm

or 

show details of '<vm_name>' lightsail vm
```

#### Replacing firewall rules for a lightsail vm <a href="#heading-replacing-firewall-rules-for-a-lightsail-vm" id="heading-replacing-firewall-rules-for-a-lightsail-vm"></a>

**Required permissions**

* lightsail:PutInstancePublicPorts

**Prompt examples**

```plaintext
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 <a href="#heading-startingstoppingrebooting-a-lightsail-vm" id="heading-startingstoppingrebooting-a-lightsail-vm"></a>

**Required permissions**

* lightsail:StartInstance
* lightsail:StopInstance
* lightsail:RebootInstance

**Prompt examples**

```plaintext
start '<vm_name>' lightsail vm

stop '<vm_name>' lightsail vm

reboot '<vm_name>' lightsail vm
```
