utilities/sagemaker_notebook_automation/glue_sagemaker_notebook.yaml [1:66]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
AWSTemplateFormatVersion: 2010-09-09
Description: Glue SageMaker notebook

Parameters:
  NotebookName:
    Type: String
    Description: "Name may contain letters (A-Z), numbers(0-9), hyphens(-), or underscores(_)."
  DevEndpointName:
    Type: String
    Description: "Dev Endpoint name which this notebook instance is attached to."
  GlueServiceRoleARN:
    Type: String
    Description: "The Amazon Resource Name (ARN) of the IAM role used in this DevEndpoint."
  WorkerType:
    Type: String
    Description: "The Glue worker type. "
    AllowedValues:
      - "G.1X"
      - "G.2X"
    Default: "G.1X"
  NumberOfWorkers:
    Type: Number
    Description: "The number of Glue workers allocated to this DevEndpoint."
    Default: 5


Resources:
  DevEndpoint:
    Type: AWS::Glue::DevEndpoint
    Properties:
      EndpointName: !Ref DevEndpointName
      WorkerType: !Ref WorkerType
      NumberOfWorkers: !Ref NumberOfWorkers
      GlueVersion: "1.0"
      RoleArn: !Ref GlueServiceRoleARN
      Arguments:
        {
          "--enable-glue-datacatalog": "",
          "GLUE_PYTHON_VERSION": "3"
        }
  NotebookRole:
    Type: AWS::IAM::Role
    Properties:
      AssumeRolePolicyDocument:
        Version: '2012-10-17'
        Statement:
          - Effect: Allow
            Principal:
              Service:
                - sagemaker.amazonaws.com
            Action:
              - sts:AssumeRole
      RoleName: !Sub AWSGlueServiceSageMakerNotebookRole-${AWS::StackName}
      Path: /
      ManagedPolicyArns:
        - arn:aws:iam::aws:policy/AmazonSageMakerFullAccess
      Policies:
        -
          PolicyName: "root"
          PolicyDocument:
            Version: "2012-10-17"
            Statement:
              -
                Effect: "Allow"
                Action:
                  - s3:ListBucket
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



utilities/sagemaker_notebook_automation/glue_sagemaker_notebook_cn.yaml [1:66]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
AWSTemplateFormatVersion: 2010-09-09
Description: Glue SageMaker notebook

Parameters:
  NotebookName:
    Type: String
    Description: "Name may contain letters (A-Z), numbers(0-9), hyphens(-), or underscores(_)."
  DevEndpointName:
    Type: String
    Description: "Dev Endpoint name which this notebook instance is attached to."
  GlueServiceRoleARN:
    Type: String
    Description: "The Amazon Resource Name (ARN) of the IAM role used in this DevEndpoint."
  WorkerType:
    Type: String
    Description: "The Glue worker type. "
    AllowedValues:
      - "G.1X"
      - "G.2X"
    Default: "G.1X"
  NumberOfWorkers:
    Type: Number
    Description: "The number of Glue workers allocated to this DevEndpoint."
    Default: 5


Resources:
  DevEndpoint:
    Type: AWS::Glue::DevEndpoint
    Properties:
      EndpointName: !Ref DevEndpointName
      WorkerType: !Ref WorkerType
      NumberOfWorkers: !Ref NumberOfWorkers
      GlueVersion: "1.0"
      RoleArn: !Ref GlueServiceRoleARN
      Arguments:
        {
          "--enable-glue-datacatalog": "",
          "GLUE_PYTHON_VERSION": "3"
        }
  NotebookRole:
    Type: AWS::IAM::Role
    Properties:
      AssumeRolePolicyDocument:
        Version: '2012-10-17'
        Statement:
          - Effect: Allow
            Principal:
              Service:
                - sagemaker.amazonaws.com
            Action:
              - sts:AssumeRole
      RoleName: !Sub AWSGlueServiceSageMakerNotebookRole-${AWS::StackName}
      Path: /
      ManagedPolicyArns:
        - arn:aws:iam::aws:policy/AmazonSageMakerFullAccess
      Policies:
        -
          PolicyName: "root"
          PolicyDocument:
            Version: "2012-10-17"
            Statement:
              -
                Effect: "Allow"
                Action:
                  - s3:ListBucket
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



