AWSCloudFormationtemplateforGluewithmultiplepredicateconditions
创始人
2024-09-24 07:31:09
0

AWS CloudFormation模板可用于在Amazon Glue中创建多谓词条件的Jupyter Notebook。以下是一个示例模板:

Resources:
  Sparkeventsgluecrawler:
    Type: AWS::Glue::Crawler
    Properties:
      Name: "Sparkeventsgluecrawler"
      Role: "arn:aws:iam::123456789012:role/service-role/AWSGlueServiceRoleDefault"
      Targets:
        S3Targets:
          - Path: "s3://my-s3-bucket/myfolder/"
      SchemaChangePolicy:
        UpdateBehavior: UPDATE_IN_DATABASE
        DeleteBehavior: DEPRECATE_IN_DATABASE
      TablePrefix: "glu"
      Classifiers:
        - classifier
  RootS3Location:
    Type: AWS::S3::Bucket
    Properties:
      BucketName: "my-s3-bucket"
  GlueNotebook:
    Type: AWS::Glue::DevEndpoint
    Properties:
      EndpointName: "glue-notebook"
      RoleArn: "aws:iam::123456789012:role/myGlueRole"
      SecurityGroupIds:
        - security-group-id
      SubnetId: subnet-id
      GlueVersion: "1.0"
      NumberOfNodes: 2
      PublicKey: "my-public-key"
      PublicKeys:
        - my-public-key
      ExtraPythonLibsS3Path: "s3://my-s3-bucket/myPythonlibs.zip"
  GlueNotebookInstanceLifecycleConfig:
    Type: "AWS::Glue::NotebookInstanceLifecycleConfig"
    Properties:
      NotebookInstanceLifecycleConfigs:
        - OnCreate:
            - Action:
                - Name: "jupyter-enterprise-gateway-startup"
                  Arguments:
                    - "--GatewayPort=8888"
                    - "--IP=0.0.0.0"
                    - "--NotebookPort=8889"
                    - "--KernelGateway.Enabled=True"
                    - "--KernelGateway.Port=8889"
                    - "--KernelGateway.KernelManagerFactory.kernel_spec_manager_class=jupyter_enterprise_gateway.services.kernelspecs.managers.CachingNB2GatewayKernelSpecManagerClass"
                  Component: "KernelGatewayApp"
  GlueNotebookInstance:
    Type: "AWS::Glue::NotebookInstance"
    Properties:
      InstanceType: "ml.t2.medium"
      RoleArn: "aws:iam::123456789012:role/service-role/AWSGlueServiceNotebookRole"
      LifecycleConfigName: "GlueNotebookInstanceLifecycleConfig"
      DirectInternetAccess: "Disabled"
      SecurityGroupIds:

相关内容

热门资讯

教程攻略!微乐自建房辅助工具,... 教程攻略!微乐自建房辅助工具,微乐自建房脚本免费入口(开挂自建房)app所有人都在同一条线上,像星星...
重大通报!微乐自建房辅助工具免... 重大通报!微乐自建房辅助工具免费app,微乐家乡麻将自建房辅助app(开挂自建房)教程1、重大通报!...
推荐一款!微信微乐自建房辅助工... 推荐一款!微信微乐自建房辅助工具,微乐家乡麻将自建房辅助app(开挂自建房)攻略进入游戏-大厅左侧-...
推荐一款!微乐自建房辅助工具神... 推荐一款!微乐自建房辅助工具神器,微乐小程序免费黑科技(开挂自建房)器1、金币登录送、破产送、升级送...
总算清楚!微信微乐自建房辅助工... 总算清楚!微信微乐自建房辅助工具,微乐家乡麻将自建房辅助app(开挂自建房)app1)微乐家乡麻将自...
重要通知!微乐自建房辅助工具神... 重要通知!微乐自建房辅助工具神器,微乐家乡麻将自建房辅助app(开挂自建房)方法1、在微乐家乡麻将自...
热点推荐!微信微乐自建房辅助工... 热点推荐!微信微乐自建房辅助工具,微乐自建房脚本免费入口(开挂自建房)app微信微乐自建房辅助工具能...
2024教程!微乐自建房辅助工... 2024教程!微乐自建房辅助工具神器,微乐自建房脚本免费入口(开挂自建房)脚本1、微乐自建房辅助工具...
记者揭秘!微乐自建房辅助工具神... 记者揭秘!微乐自建房辅助工具神器,微乐自建房脚本免费入口(开挂自建房)攻略;1、任何微乐自建房辅助工...
玩家实测!微乐自建房辅助工具插... 玩家实测!微乐自建房辅助工具插件,微乐家乡麻将自建房辅助app(开挂自建房)器1、微乐家乡麻将自建房...