pip install aws
aws configure
. See instructions here TODO
3) GitHub OAuth Token – Follow these instructions to create an OAuth Token: [[https://github.com/stelligent/devops-essentials/wiki/Prerequisites#create-an-oauth-token-in-github][Create a GitHub OAuth Token]]
4) A Github repository for the model code. The pipeline requires a certain structure for the model repository (see below)
** Model Repository Structure
The sample model used to test the pipeline is located here TODO. You can use this sample model as a template for your own./configuration/trainingjob.json
/configuration/tuning.json
launch-pipeline.sh
from a shell. There are parameters that need to be filled in in order to run:
1) AWS Account Information:
AWS_DEFAULT_REGION="<Enter AWS Region your are using, ie us-east-1>"
Email="<Enter Your Email>"
2) Model Repository Information:
There are also parameters that have included defaults, they can be optionally adjusted: 1) CodeBuild Project Parameters
Python_Build_Version="aws/codebuild/python:3.6.-3.5"
Build_Timeout_Mins=30
2) SageMaker Training Job Parameters
Instance_Count=1
Instance_Type="ml.m4.xlarge"
Max_Runtime_In_Seconds=86400
Vol_In_GB=60
** Credits Example pipeline projects used for reference, and for code snippets, were: