MARKETPLACE
PLUGINS
AWS EC2 - INSTANCE CONTROL
AWS EC2 - Instance Control logo

AWS EC2 - Instance Control

Published September 2020
   •    Updated July 2025

Plugin details

Amazon Elastic Compute Cloud (Amazon EC2) is a web service that provides secure, resizable compute capacity in the cloud. It is designed to make web-scale cloud computing easier for developers. Amazon EC2’s simple web service interface allows you to obtain and configure capacity with minimal friction. It provides you with complete control of your computing resources and lets you run on Amazon’s proven computing environment.
A script is provided to automatically configure your AWS account settings.

This plugin provides control on your instance by three actions: Start Instance, Stop Instance, and Describe Instance, which is to get the instance's state.

The demo application link: https://awsec2instancecontrol.bubbleapps.io/version-test

💡 𝗦𝘂𝗯𝘀𝗰𝗿𝗶𝗽𝘁𝗶𝗼𝗻𝘀 𝗮𝗿𝗲 𝗽𝗿𝗼𝗿𝗮𝘁𝗲𝗱. 𝗜𝗳 𝘆𝗼𝘂 𝗶𝗻𝘀𝘁𝗮𝗹𝗹 𝗮𝗻𝗱 𝘂𝗻𝘀𝘂𝗯𝘀𝗰𝗿𝗶𝗯𝗲 𝘁𝗵𝗶𝘀 𝗽𝗹𝘂𝗴𝗶𝗻 𝗶𝗻 𝗼𝗻𝗲 𝗱𝗮𝘆 𝘁𝗼 𝘁𝗲𝘀𝘁 𝗶𝘁 𝗼𝘂𝘁, 𝘆𝗼𝘂'𝗹𝗹 𝗼𝗻𝗹𝘆 𝗯𝗲 𝗰𝗵𝗮𝗿𝗴𝗲𝗱 𝟭/𝟯𝟬𝘁𝗵 𝗼𝗳 𝘁𝗵𝗲 𝗺𝗼𝗻𝘁𝗵𝗹𝘆 𝘀𝘂𝗯𝘀𝗰𝗿𝗶𝗽𝘁𝗶𝗼𝗻 𝗳𝗲𝗲.

📖 𝗦𝘁𝗲𝗽-𝗯𝘆-𝗦𝘁𝗲𝗽 𝗶𝗻𝘀𝘁𝗿𝘂𝗰𝘁𝗶𝗼𝗻𝘀 𝗮𝗿𝗲 𝘁𝗵𝗲 "𝗜𝗻𝘀𝘁𝗿𝘂𝗰𝘁𝗶𝗼𝗻𝘀" 𝘀𝗲𝗰𝘁𝗶𝗼𝗻 𝗮𝗻𝗱 𝗗𝗲𝗺𝗼 𝗘𝗱𝗶𝘁𝗼𝗿 𝗶𝘀 𝗶𝗻 𝘁𝗵𝗲 "𝗟𝗶𝗻𝗸𝘀" 𝘀𝗲𝗰𝘁𝗶𝗼𝗻 𝗼𝗳 𝘁𝗵𝗲 𝗣𝗹𝘂𝗴𝗶𝗻 𝗣𝗮𝗴𝗲.

Contact us at [email protected] for any additional feature you would require or support question.

$59

One time  •  Or  $9/mo

stars   •   0 ratings
24 installs  
This plugin does not collect or track your personal data.

Platform

Web & Native mobile

Contributor details

wise:able logo
wise:able
Joined 2020   •   122 Plugins
View contributor profile

Instructions

0 : AUTOMATED CONFIGURATION =======================================
The steps from 0) to 1) of START INSTANCE, STOP INSTANCE, DESCRIBE INSTANCE can be automatically performed by using this deployment template:
 https://console.aws.amazon.com/cloudformation/home?#/stacks/create/review?stackName=BubbleEC2&templateURL=https://bubble-resources.s3.amazonaws.com/deployment-assets/CloudFormation-AWSEC2.yaml

 You will find the required parameters values used across the plugin in the "OUTPUT" tab of the created stack.

1 : START INSTANCE
===============================

ACTION DESCRIPTION
--------------------------------
 START INSTANCE starts an AWS EC2 instance that has been previously stopped.

STEP-BY-STEP SETUP
--------------------------------
The steps from 0) to 1) can be automatically performed by using this deployment template:
 https://console.aws.amazon.com/cloudformation/home?#/stacks/create/review?stackName=BubbleEC2&templateURL=https://bubble-resources.s3.amazonaws.com/deployment-assets/CloudFormation-AWSTranslateSyncOnly.yaml

 You will find the required parameters values used across the plugin in the "OUTPUT" tab of the created stack.

 0) Sign-up for AWS EC2 by following this link: https://console.aws.amazon.com/ec2/v2/home

 1) Create your AWS EC2 API KEY & SECRET and attach the AWS EC2 FULL ACCESS POLICY https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys

 2) Enter in the PLUGIN SETTINGS your AWS EC2 API KEY & SECRET & AWS SERVICE ENDPOINT REGION (if not provided, the default endpoint is "us-east-1").

 3) Set up the "START INSTANCE" action in the workflow.

   Inputs Fields :
     - INSTANCE ID : ID of the AWS EC2 instance to start.
   Output Fields :
     - CURRENT STATE CODE : State code of the instance after command execution. Valid values are: 0:pending | 16:running | 32:shutting-down | 48:terminated | 64:stopping | 80:stopped.
     - CURRENT STATE NAME : State name of the instance after command execution. Valid values are: pending | running | shutting-down | terminated | stopping | stopped.
     - PREVIOUS STATE CODE : State code of the instance prior command execution. Valid values are: 0:pending | 16:running | 32:shutting-down | 48:terminated | 64:stopping | 80:stopped.
     - PREVIOUS STATE NAME : State name of the instance prior command execution. Valid values are: pending | running | shutting-down | terminated | stopping | stopped.

2 : DESCRIBE INSTANCE
===============================

ACTION DESCRIPTION
--------------------------------
 DESCRIBE INSTANCE describes the state of an AWS EC2 instance.

STEP-BY-STEP SETUP
--------------------------------
 0) If not already done, perform the steps 0 to 2 of the first action of this documentation."

 1) Set up the "DESCRIBE INSTANCE" action in the workflow. If you wish to continuously poll the instance state, use a Repeating Workflow.

   Inputs Fields :
     - INSTANCE ID : ID of the AWS EC2 instance ID to describe.
   Output Fields :
     - LAUNCH TIME : The date and time time the instance launched.
     - STATE CODE : State code of the instance. Valid values are: 0:pending | 16:running | 32:shutting-down | 48:terminated | 64:stopping | 80:stopped.
     - STATE NAME : State name of the instance. Valid values are: pending | running | shutting-down | terminated | stopping | stopped.
     - STATE TRANSITION REASON : The reason code for the state change. Valid values are:
         - Insufficient Instance Capacity: There was insufficient capacity available to satisfy the launch request.
         - Internal Error: An internal error caused the instance to terminate during launch.
         - Scheduled Stop: The instance was stopped due to a scheduled retirement.
         - Spot Instance Shutdown: The instance was stopped because the number of Spot requests with a maximum price equal to or higher than the Spot price exceeded available capacity or because of an increase in the Spot price.
         - Spot Instance Termination: The instance was terminated because the number of Spot requests with a maximum price equal to or higher than the Spot price exceeded available capacity or because of an increase in the Spot price.
         - Instance Initiated Shutdown: The instance was shut down using the shutdown -h command from the instance
         - Instance Terminated: The instance was terminated or rebooted during AMI creation.
         - Invalid Snapshot Not Found: The specified snapshot was not found.
         - User Initiated Hibernate: Hibernation was initiated on the instance.
         - User Initiated Shutdown: The instance was shut down using the Amazon EC2 API.
         - Volume Limit Exceeded: The limit on the number of EBS volumes or total storage was exceeded. Decrease usage or request an increase in your account limits.

3 : STOP INSTANCE
===============================

ACTION DESCRIPTION
--------------------------------
 STOP INSTANCE stops an AWS EC2 instance that has been previously started.

STEP-BY-STEP SETUP
--------------------------------
 0) If not already done, perform the steps 0 to 2 of the first action of this documentation."

 1) Set up the "STOP INSTANCE" action in the workflow.

   Inputs Fields :
     - INSTANCE ID : ID of the AWS EC2 instance to stop.
   Output Fields :
     - CURRENT STATE CODE : State code of the instance after command execution. Valid values are: 0:pending | 16:running | 32:shutting-down | 48:terminated | 64:stopping | 80:stopped.
     - CURRENT STATE NAME : State name of the instance after command execution. Valid values are: pending | running | shutting-down | terminated | stopping | stopped.
     - PREVIOUS STATE CODE : State code of the instance prior command execution. Valid values are: 0:pending | 16:running | 32:shutting-down | 48:terminated | 64:stopping | 80:stopped.
     - PREVIOUS STATE NAME : State name of the instance prior command execution. Valid values are: pending | running | shutting-down | terminated | stopping | stopped.

IMPLEMENTATION EXAMPLE
======================
Feel free to browse the app editor in the Service URL for an implementation example.

ADDITIONAL INFORMATION
======================
> AWS EC2 availability per region: https://aws.amazon.com/about-aws/global-infrastructure/regional-product-services/

> Available endpoints per region: https://docs.aws.amazon.com/general/latest/gr/rande.html

TROUBLESHOOTING
================
Any plugin related error will be posted to the the Logs tab, "Server logs" section of your App Editor.
Make sure that "Plugin server side output" and "Plugin server side output" is selected in "Show Advanced".

> Server Logs Details: https://manual.bubble.io/core-resources/bubbles-interface/logs-tab#server-logs

PERFORMANCE CONSIDERATIONS
===========================

N/A

QUESTIONS ?
===========
Contact us at [email protected] for any additional feature you would require or support ques

Types

This plugin can be found under the following types:

Categories

This plugin can be found under the following categories:

Resources

Support contact
Documentation
Tutorial

Rating and reviews

No reviews yet

This plugin has not received any reviews.
Bubble