larger disks for ecs instances
This commit is contained in:
parent
314a3f41a8
commit
e3fc28cb82
1 changed files with 14 additions and 0 deletions
|
|
@ -74,6 +74,17 @@ rBuildsEcsTaskIamRole:
|
||||||
- arn:aws:s3:::${self:custom.s3Bucket}
|
- arn:aws:s3:::${self:custom.s3Bucket}
|
||||||
- arn:aws:s3:::${self:custom.s3Bucket}/*
|
- arn:aws:s3:::${self:custom.s3Bucket}/*
|
||||||
|
|
||||||
|
rBuildsEcsLaunchTemplate:
|
||||||
|
Type: AWS::EC2::LaunchTemplate
|
||||||
|
Properties:
|
||||||
|
LaunchTemplateName: r-builds-batch-managed-ecs-larger-volume
|
||||||
|
LaunchTemplateData:
|
||||||
|
BlockDeviceMappings:
|
||||||
|
- DeviceName: /dev/xvdcz
|
||||||
|
Ebs:
|
||||||
|
VolumeType: gp2
|
||||||
|
VolumeSize: 64
|
||||||
|
|
||||||
rBuildsBatchComputeEnvironment:
|
rBuildsBatchComputeEnvironment:
|
||||||
Type: AWS::Batch::ComputeEnvironment
|
Type: AWS::Batch::ComputeEnvironment
|
||||||
DependsOn: rBuildsBatchIamRole
|
DependsOn: rBuildsBatchIamRole
|
||||||
|
|
@ -82,6 +93,9 @@ rBuildsBatchComputeEnvironment:
|
||||||
ServiceRole:
|
ServiceRole:
|
||||||
"Fn::GetAtt": [ rBuildsBatchIamRole, Arn ]
|
"Fn::GetAtt": [ rBuildsBatchIamRole, Arn ]
|
||||||
ComputeResources:
|
ComputeResources:
|
||||||
|
LaunchTemplate:
|
||||||
|
LaunchTemplateId:
|
||||||
|
Ref: rBuildsEcsLaunchTemplate
|
||||||
SpotIamFleetRole:
|
SpotIamFleetRole:
|
||||||
"Fn::GetAtt": [ rBuildsSpotFleetIamRole, Arn ]
|
"Fn::GetAtt": [ rBuildsSpotFleetIamRole, Arn ]
|
||||||
SecurityGroupIds: ${self:custom.securityGroupIds}
|
SecurityGroupIds: ${self:custom.securityGroupIds}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue