Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Need some help? Contact us:

...

 

 

The EC2 AWS CLI adapter is a simple component which can be used to automate EC2 interactions such as managing IPs, getting EC2 instance descriptions and running instances. We use it ourselves to streamline deploying our EC2 instances.

...

Expand
titleUse +FROM URL to import the EC2 AWS CLI Adapter

You can use this url:

Code Block
git@bitbucket.org:interfaceware/ec2awscli.git

This adapter is built as a Library, so you can also create your own component and simply import the EC2 Library into your project. See Import Library.

Expand
titleReview and update the Custom Fields to your configurations

There are two custom fields to set:

  • ltemplate: AWS EC2 Instance Launch Template ID (ex. lt-0123456789abcdef0) will be used to programmatically run an EC2 instance. You can find this value in your AWS Console > Services > EC2 > Instance > Launch Templates.

  • resultsout: File directory location to store temporary result files. You can leave this as is or change to a directory of your choice.

These are a component’s Custom Fields.

...

Expand
titleRun a new EC2 instance using a launch template

Go to the sampleRunInstance function and replace the parameters with your launchTemplate ID, Name and optional CNAME. Uncomment sampleRunInstance() to launch a new instance using your launch template.

Image RemovedImage Added

You can also access your launchTemplate ID in your custom fields!

See the results in your AWS Console in EC2 > Instances. Copy the Instance ID for the next call.

...