File tree Expand file tree Collapse file tree 1 file changed +53
-0
lines changed Expand file tree Collapse file tree 1 file changed +53
-0
lines changed Original file line number Diff line number Diff line change 1+ Description : This template creates a Sagemaker Notebook instance for training an AWS DeepRacer model using Amazon Sagemaker (SO9337)
2+
3+ Resources :
4+ DPR401Role :
5+ Type : AWS::IAM::Role
6+ Properties :
7+ AssumeRolePolicyDocument :
8+ Version : " 2012-10-17"
9+ Statement :
10+ - Effect : Allow
11+ Principal :
12+ Service :
13+ - sagemaker.amazonaws.com
14+ - robomaker.amazonaws.com
15+ Action :
16+ - ' sts:AssumeRole'
17+ Description : Role for DPR401
18+ RoleName : DPR401Role
19+ ManagedPolicyArns :
20+ - arn:aws:iam::aws:policy/AmazonKinesisVideoStreamsFullAccess
21+ - arn:aws:iam::aws:policy/AmazonSageMakerFullAccess
22+ - arn:aws:iam::aws:policy/AmazonElasticContainerRegistryPublicReadOnly
23+ - arn:aws:iam::aws:policy/EC2InstanceProfileForImageBuilderECRContainerBuilds
24+ - arn:aws:iam::aws:policy/service-role/AWSDeepRacerServiceRolePolicy
25+ Policies :
26+ - PolicyDocument :
27+ Version : " 2012-10-17"
28+ Statement :
29+ - Effect : Allow
30+ Action :
31+ - ' iam:PassRole'
32+ Resource : !Sub 'arn:aws:iam::${AWS::AccountId}:role/DPR401Role'
33+ - Effect : Allow
34+ Action :
35+ - ' ecr:DeleteRepository'
36+ Resource :
37+ - !Sub ' arn:aws:ecr:${AWS::Region}:${AWS::AccountId}:repository/sagemaker-docker-cpu'
38+ - !Sub ' arn:aws:ecr:${AWS::Region}:${AWS::AccountId}:repository/deepracer-sim-local-notebook'
39+ PolicyName : DPR401InlinePolicy
40+ MaxSessionDuration : 43200
41+
42+ DPR401Notebook :
43+ Type : AWS::SageMaker::NotebookInstance
44+ Properties :
45+ PlatformIdentifier : notebook-al2-v1
46+ DefaultCodeRepository : https://github.com/aws-solutions-library-samples/guidance-for-training-an-aws-deepracer-model-using-amazon-sagemaker.git
47+ DirectInternetAccess : Enabled
48+ InstanceType : ml.t3.2xlarge
49+ NotebookInstanceName : DPR401-notebook
50+ RoleArn : !GetAtt DPR401Role.Arn
51+ RootAccess : Enabled
52+ VolumeSizeInGB : 25
53+
You can’t perform that action at this time.
0 commit comments