Automating with AWS CloudFormation
AWS CloudFormation has long been the preferred way to automate infrastructure builds and operations on AWS (https://aws.amazon.com/cloudformation). We could certainly write a book on the topic, but we'll stick to basics in this section.
The first step in using CloudFormation is to write a template, a JSON or YAML text file describing the resources that you want to build, such as an EC2 instance or an S3 bucket. Resources are available for almost all AWS services, and SageMaker is no exception.If we look at https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/AWS_SageMaker.html, we see that we can create Notebook instances and deploy endpoints.
A template can (and should) include parameters and outputs. The former help make templates as generic as possible. The latter provide information that can be used by downstream applications, such as instance DNS names or bucket names.
Once you've written your template file, you pass...