Link Search Menu Expand Document

Amazon Web Services

In this guide we’ll show you how to configure your environment to provision Vorteil apps to the Amazon Web Services platform.

Amazon is a market leader in the cloud-computing space. Many commercial applications are hosted on EC2 in production, so to make life easier for you we’ve built some support for AWS directly into our tools.

Before you start

To follow along all you’ll need is the Vorteil command-line interface, which comes with Vorteil Studio.

You’ll also need an account with Amazon AWS with the ability to deploy virtual machines on EC2 and have the vimport service role configured on your user. You’ll also need an access key for this account. Setting up an account with Amazon AWS is beyond the scope of this guide, but by the end of the process you should be able to provide the following information:

  • key: the access key ID
  • secret: the access key secret
  • region: a region you have chosen where your virtual machines will be hosted
  • bucket: a s3 bucket that you have created in the same region

You’ll also need to manually create a security group named vorteil-provisioner in the region, allowing inbound TCP traffic from anywhere to port 443.

Creating an Amazon Web Services provisioner file

To configure an AWS provisioner takes just one command after you’ve found all of the relevant information from the ‘Before you start’ section above. Dummy values for each of the three fields listed in the ‘Before you start’ section are used here as well, use your own values to make AWS work.

$ vorteil provisioners new amazon-ec2 ./aws.provisioner --key=EXAMPLEDATA --region=us-west-1 --secret=MOREEXAMPLEDATA --bucket YOUR-AWS-BUCKET

The command will create a file at ./aws.provisioner, which is a base64-encoded version of the information required to provision to Amazon Web Services. An optional flag, --passphrase, can be used when creating the provisioner to encrypt the resulting payload. The passphrase will be required when attempting to use the provisioner in the future.

Provisioning an image

Now that a provisioner file has been created, it can be used in the provision command to direct our vorteil BUILDABLE. To provision with our new provisioner use the following command:

$ vorteil images provision BUILDABLE ./aws.provisioner --name myimage

Copyright © 2020 Vorteil.io. Support website for Vorteil.io