How to use MechCloud chatbot to manage your AWS Lightsail Resources

How to use MechCloud chatbot to manage your AWS Lightsail Resources

Shailendra Singh's photo
·

2 min read

Introduction

In the beginning of this week, we announced our chatbot for AWS APIs which lets you query or provision AWS resources using plain english commands. You can read full announcement here. The announcement also describes how to configure your aws account so that the chatbot can communicate with AWS using your aws account.

This blog post describes the prompts which one can use to manage AWS lightsail resources using MechCloud Chatbot for AWS APIs.

This chatbot now has support for the following operations (this list will be updated from time to time as we add support for more operations) -

  • Listing lightsail VMs

  • Getting details of a lightsail VM

  • Replacing firewall rules of a lightsail VM

  • Starting / stopping / rebooting a lightsail VM

Supported operations

Listing lightsail VMs

Required permissions

  • lightsail:GetInstances

Prompt examples

list all the lightsail vms

Getting details of a lightsail vm

Required permissions

  • lightsail:GetInstance

Prompt examples

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

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

start '<vm_name>' lightsail vm

stop '<vm_name>' lightsail vm

reboot '<vm_name>' lightsail vm

Stay connected

Join our discord server to get latest updates on this chatbot.

Did you find this article valuable?

Support MechCloud by becoming a sponsor. Any amount is appreciated!