Merge pull request #200 from rstudio/update-compute-env-ami
Theoretically we can remove the rBuildsBatchIamRole because the AWSSe…
This commit is contained in:
commit
7ceb820ec9
1 changed files with 1 additions and 17 deletions
|
|
@ -6,21 +6,6 @@ rBuildsSecurityGroup:
|
||||||
VpcId: ${self:custom.vpcId}
|
VpcId: ${self:custom.vpcId}
|
||||||
Tags: ${self:provider.tagsList}
|
Tags: ${self:provider.tagsList}
|
||||||
|
|
||||||
|
|
||||||
rBuildsBatchIamRole:
|
|
||||||
Type: AWS::IAM::Role
|
|
||||||
Properties:
|
|
||||||
Path: /service-role/
|
|
||||||
AssumeRolePolicyDocument:
|
|
||||||
Version: '2012-10-17'
|
|
||||||
Statement:
|
|
||||||
- Effect: Allow
|
|
||||||
Principal:
|
|
||||||
Service:
|
|
||||||
- batch.amazonaws.com
|
|
||||||
Action: sts:AssumeRole
|
|
||||||
ManagedPolicyArns:
|
|
||||||
- arn:aws:iam::aws:policy/service-role/AWSBatchServiceRole
|
|
||||||
rBuildsSpotFleetIamRole:
|
rBuildsSpotFleetIamRole:
|
||||||
Type: AWS::IAM::Role
|
Type: AWS::IAM::Role
|
||||||
Properties:
|
Properties:
|
||||||
|
|
@ -103,8 +88,6 @@ rBuildsBatchComputeEnvironment:
|
||||||
DependsOn: rBuildsBatchIamRole
|
DependsOn: rBuildsBatchIamRole
|
||||||
Properties:
|
Properties:
|
||||||
Type: MANAGED
|
Type: MANAGED
|
||||||
ServiceRole:
|
|
||||||
"Fn::GetAtt": [ rBuildsBatchIamRole, Arn ]
|
|
||||||
ComputeResources:
|
ComputeResources:
|
||||||
AllocationStrategy: BEST_FIT_PROGRESSIVE
|
AllocationStrategy: BEST_FIT_PROGRESSIVE
|
||||||
LaunchTemplate:
|
LaunchTemplate:
|
||||||
|
|
@ -135,6 +118,7 @@ rBuildsBatchComputeEnvironment:
|
||||||
MinvCpus: 0
|
MinvCpus: 0
|
||||||
DesiredvCpus: 0
|
DesiredvCpus: 0
|
||||||
MaxvCpus: 256
|
MaxvCpus: 256
|
||||||
|
UpdateToLatestImageVersion: true
|
||||||
|
|
||||||
rBuildsBatchJobQueue:
|
rBuildsBatchJobQueue:
|
||||||
Type: AWS::Batch::JobQueue
|
Type: AWS::Batch::JobQueue
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue