Using Commandeer as a Front-End Console for AWS Local Resources

If you’ve worked with Localstack for mock AWS testing, then chances are most of the interactions with the stack have been via the AWS CLI or an SDK. Localstack’s Community Edition does not currently offer an official web-based UI, however, this feature is offered in Pro and Enterprise versions.

At a basic level, Commandeer provides a neat UI for interaction with AWS cloud and Localstack services.

The context of this article is limited to providing a basic overview of setting up Commandeer (release version 1.6.0) with Localstack.

Installing Commandeer

Ensure you have Snap and Docker installed on your Linux distro.

Install Commandeer by running:

Localstack Set Up

You have the option to configure and launch Localstack from the Commandeer console, or alternatively, using Docker Compose to instantiate a Localstack instance, ready for hooking into Commandeer.

My preference was to use Docker Compose.

The following outlines the Localstack setup running on my localhost.

  • Create directory structure for files and docker mounts.
  • Create a docker-compose file at $HOME/localstack/docker-compose.yml with the following contents.
  • Bring up the stack using:

The combination of compose environment variables, LAMBDA_REMOTE_DOCKER=false and HOST_TMP_FOLDER=${TMPDIR} imply that our docker host and docker client are on the same machine. Refer to Localstack configuration documentation for further details.

Check Commandeer to Localstack Connectivity

  • Start Commandeer from a terminal by running:
  • This should get you to the Welcome to Commandeer start up window
Image for post
Image for post
  • To continue using Commandeer with Localstack on a limited plan, hit the escape key
  • You can choose to Login in App to signup for a premium paid plan, which provides access to an extensively richer feature set
  • You should now be at the main console
  • You’ll also notice a reference to account local, which has has been created by default
Image for post
Image for post
  • From the left hand services pane, scroll to Localstack and select the Dashboard sub item
Image for post
Image for post
  • Commandeer’s console should refresh to reflect the running Localstack services
  • The above shows a total of 24 active services (“Services on”)
  • Towards the top right hand of the console, you should also see Docker and Localstack status indicators highlighted in green

Examples of Using the Commandeer Console

Below are some simple examples used to test the set up.

S3 Bucket Creation

  • The below example shows the creation of an S3 bucket with name sample, using the console
Image for post
Image for post

Execute an Existing Lambda Function

  • The following demonstrates Commandeer console being used to trigger an existing Lambda, hosted on Localstack
Image for post
Image for post
Image for post
Image for post

Closing Remarks

The setup accomplished in this article serves as a foundation for further discovery of Commandeer’s capabilities.

The Commandeer app code base is closed source, however, a demo application for help in creating Commandeer service is publicly available via an open source repo.

Primarily a Learner/Coder with interests in Python, Cloud Technologies, Security and Automation. Pandas munching on Bamboo sticks give me the “Giggles” :))

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store