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}/*
|
||||
|
||||
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:
|
||||
Type: AWS::Batch::ComputeEnvironment
|
||||
DependsOn: rBuildsBatchIamRole
|
||||
|
|
@ -82,6 +93,9 @@ rBuildsBatchComputeEnvironment:
|
|||
ServiceRole:
|
||||
"Fn::GetAtt": [ rBuildsBatchIamRole, Arn ]
|
||||
ComputeResources:
|
||||
LaunchTemplate:
|
||||
LaunchTemplateId:
|
||||
Ref: rBuildsEcsLaunchTemplate
|
||||
SpotIamFleetRole:
|
||||
"Fn::GetAtt": [ rBuildsSpotFleetIamRole, Arn ]
|
||||
SecurityGroupIds: ${self:custom.securityGroupIds}
|
||||
|
|
|
|||
Loading…
Reference in a new issue