This directory contains the instructions and configuration files to build a custom automl AWS Amazon machine image (AMI).
Note, the current configuration only works in the eu-central-1 region of AWS. Since, the base ami is hard coded to match an AMI that's only available in this region.
Packer is the command line tool that's used by this module to build a custom AWS AMI. To build the image, the packer cmd tool must be installed on your local machine. For more install information, how to install packer
Before building a new automl AMI, the AWS credentials must be configured to allow for programmatic access
- configure AWS credentials
- create AWS profile (e.g. automl)
- set profile name (2 options)
- update profile name in packer config file (i.e. ami-automl.pkr.hcl)
- set profile environment variable (e.g. 'export AWS_PROFILE=automl')
Before building the automl AMI, the packer config file should be validated. To validate, run the following command.
packer validate ./config/ami-automl.pkr.hcl
If the validation step has succeeded, run the following command to build the ami.
packer build ./config/ami-automl.pkr.hcl
build steps:
- install: curl wget unzip git
- install: software-properties-common
- add repository ppa:deadsnakes/ppa
- update packages
- install python3 (pip3, pyvenv, pydev, python)
- install awscli, wheel
- create directories
- git clone stable branche automl
- create python environment
- install python packages