# This sample, non-production-ready template describes the Service Catalog Configuration. # © 2021 Amazon Web Services, Inc. or its affiliates. All Rights Reserved. # This AWS Content is provided subject to the terms of the AWS Customer Agreement available at # http://aws.amazon.com/agreement or other written agreement between Customer and either # Amazon Web Services, Inc. or Amazon Web Services EMEA SARL or both. AWSTemplateFormatVersion: '2010-09-09' Parameters: NotebookInstanceType: AllowedValues: - 'ml.t2.medium' - 'ml.t3.medium' - 'ml.t3.large' - 'ml.t3.xlarge' - 'ml.c5.large' ConstraintDescription: Must select a valid notebook instance type. Default: ml.t2.medium Description: Select Instance type for the SageMaker Notebook Type: String S3IAMConfigStackName: Type: String Description: Stack name which has all of the S3 and IAM configuration Default: s3-iam-config NotebookUserName: Type: String Description: Notebook owner username Default: Demo-User Resources: SageMakerNotebookInstance: Type: "AWS::SageMaker::NotebookInstance" Properties: NotebookInstanceName: !Sub "${NotebookUserName}-Notebook" InstanceType: !Ref NotebookInstanceType RoleArn: Fn::ImportValue: !Sub "${S3IAMConfigStackName}-SageMakerNotebookInstanceRole-ARN" Outputs: SageMakerNotebookInstanceARN: Description: "ARN for the newly created SageMaker Notebook Instance" Value: !Ref SageMakerNotebookInstance StackName: Description: The CFT Stack Name Value: !Sub ${AWS::StackName} Export: Name: !Sub ${AWS::StackName}