如何使用连接到您的私有GitHub存储库的CloudFormation设置AWS Sagemaker Notebook实例?
注意:在启动堆栈之前,我已经在ssm参数(称为github)中添加了GitHub oauth。
到目前为止,我已经尝试使用NotebookInstanceLifecycleConfig设置了上述框架。
这个例子展示了我如何克隆一个公共存储库:
FastaiNotebookInstanceLifecycleConfig:
Type: "AWS::SageMaker::NotebookInstanceLifecycleConfig"
Properties:
NotebookInstanceLifecycleConfigName: !Sub ${AWS::StackName}-lifecycle-config
OnStart:
- Content: !Base64 |
#!/bin/bash
git clone https://github.com/awslabs/amazon-sagemaker-mlops-workshop.git /home/ec2-user/SageMaker/mlops_example但是,我如何定制Lifecycleconfig来克隆私有存储库?
发布于 2020-06-27 09:07:26
您可以使用Git集成的这个SageMaker特性来克隆您的私有存储库:https://docs.aws.amazon.com/sagemaker/latest/dg/nbi-git-repo.html#nbi-git-create
相关资源的CloudFormation文档链接:
6月
https://stackoverflow.com/questions/60848427
复制相似问题