Skip to content

Instantly share code, notes, and snippets.

@PaulDuvall
Created January 19, 2021 20:27
Show Gist options
  • Save PaulDuvall/8c2ebadd5027d669647a3033b217235f to your computer and use it in GitHub Desktop.
Save PaulDuvall/8c2ebadd5027d669647a3033b217235f to your computer and use it in GitHub Desktop.
reinvent-2020-blog-sagemaker-pipeline.yml
Resources:
MyPipeline:
Type: AWS::SageMaker::Pipeline
Properties:
PipelineName: "my-pipeline"
PipelineDisplayName: "my-pipeline-display-name"
PipelineDescription: "Basic test pipeline"
PipelineDefinition:
PipelineDefinitionBody: "{\"Version\":\"2020-12-01\",\"Parameters\":[{\"Name\":\"InputDataSource\",\"DefaultValue\":\"\"},{\"Name\":\"InstanceCount\",\"Type\":\"Integer\",\"DefaultValue\":1}],\"Steps\":[{\"Name\":\"Training1\",\"Type\":\"Training\",\"Arguments\":{\"InputDataConfig\":[{\"DataSource\":{\"S3DataSource\":{\"S3Uri\":{\"Get\":\"Parameters.InputDataSource\"}}}}],\"OutputDataConfig\":{\"S3OutputPath\":\"s3://my-s3-bucket/\"},\"ResourceConfig\":{\"InstanceType\":\"ml.m5.large\",\"InstanceCount\":{\"Get\":\"Parameters.InstanceCount\"},\"VolumeSizeInGB\":1024}}}]}"
RoleArn: "arn:aws:iam::{account-id}:root"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment