Skip to content

Instantly share code, notes, and snippets.

@nivleshc
Created April 30, 2020 13:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nivleshc/042b1e2b33441bea4d37772ba6d69298 to your computer and use it in GitHub Desktop.
Save nivleshc/042b1e2b33441bea4d37772ba6d69298 to your computer and use it in GitHub Desktop.
This is the second state for the AWS Step Function to automate training, build and deployment of an Amazon SageMaker model
"Create Model": {
"Parameters": {
"PrimaryContainer": {
"Image": "544295431143.dkr.ecr.ap-southeast-2.amazonaws.com/xgboost:1",
"Environment": {},
"ModelDataUrl.$": "$.ModelArtifacts.S3ModelArtifacts"
},
"ExecutionRoleArn": "iam-role-arn",
"ModelName.$": "$.TrainingJobName"
},
"Resource": "arn:aws:states:::sagemaker:createModel",
"Type": "Task",
"ResultPath":"$.taskresult",
"Next": "Create Endpoint Config"
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment