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 EC2 resources (vpc, subnet, vm etc) using MechCloud Chatbot for AWS APIs.
This chatbot now has support for the following ec2 operations (this list will be updated from time to time as we add support for more operations) -
Creating a vpc
Listing vpcs
Creating a subnet
Listing subnets
Listing instances types (e.g. t2.micro)
Provisioning one or more ec2 VMs
Starting/stopping one or more ec2 VMs
Supported opertions
Creating a vpc
Required permissions
- ec2:CreateVpc
Prompt examples
create a vpc with '10.101.0.0/16' cidr
Listing vpcs
Required permissions
- ec2:DescribeVpcs
Prompt examples
list all the vpcs
list all the vpcs which are not default
Creating a subnet
Required permissions
- ec2:CreateSubnet
Prompt examples
create a subnet with '10.101.1.0/24' cidr
Listing subnets
Required permissions
- ec2:DescribeSubnets
Prompt examples
list all the subnets
list all the subnets which are not default
list all the subnets under '<vpc_id>' vpc
Describe instance types (e.g t2.micro)
Prompt examples
list all the instance types which are free tier eligible
Provisioning more or more ec2 VMs
Prompt examples
Provision an ec2 vm with following details -
subnet id - <subnet id>
ami id - <ami id>
instance type - t2.micro
min count - 1
max count - 1
Starting/stopping one or more ec2 VMs
Prompt examples
Start ec2 vms with following ids -
<vm1 id>
<vm2 id>
Stop ec2 vms with following ids -
<vm1 id>
<vm2 id>
Stay connected
Join our discord server to get latest updates on this chatbot.