Storage: The amount of storage in GB. Try to keep this under 30GB to avoid being charged if you’re using the free tier.
Type: The type of instance to create. Try to only create t2.micro in ap-south-1 to avoid getting charged.
OPTIONAL
Security Group IDs: You can insert a list of security groups to attach them to the instance. By default, it attaches to the default security group
Subnet ID: Subnet ID of the subnet you want for your instance. The default behavior is to attach itself to the default vpc subnet (public or private depending on whether the user needs the instance to be connected to the internet)
Internet Connected: This parameter defines whether the instance will have a public or private subnet. If this paramter is set to True and no subnet id is mentioned, it will select the first public subnet available. If no public subnet exists, an error will be returned. Default value is false.
Public IP Address: Use this parameter if the instance requires a public ip address. Default value is false.
Name: The default name is “depx-created-ec2-instance”
Image ID: The default AMI is “ami-0f5ee92e2d63afc18”. This AMI belongs to Ubuntu Server 22.04
Key Pair: The default key pair is the “depx-ec2-keypair-<cognito_userid>” which was created during the first time setup.
EXAMPLE:
Create an instance with 20gb storage and size t2.micro. The name should be test-setup and the it should be connected to the internet
Start instances
Instance IDs: List of IDs of the instances that is to be started
EXAMPLE:
Start the instance i-09e8b82e8a8bfasd
Stop instances
Instance IDs: List of IDs of the instances that is to be stopped