# 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
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.mechcloud.io/ai-agents/aws-agent/copy-of-lightsail.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
