Skip to content

Commit

Permalink
ensure most recent launch template. Remove now unnecessary parts of c…
Browse files Browse the repository at this point in the history
…loudformation
  • Loading branch information
gillins committed Mar 14, 2024
1 parent 960f3b2 commit e83484a
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions parallel_examples/awsbatch/template/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,18 +48,6 @@ Resources:
Ref: RouteTable
SubnetId:
Ref: Subnet
BatchServiceRole:
Type: AWS::IAM::Role
Properties:
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
IamInstanceProfile:
Type: AWS::IAM::InstanceProfile
Properties:
Expand Down Expand Up @@ -156,8 +144,7 @@ Resources:
Ref: IamInstanceProfile
LaunchTemplate:
LaunchTemplateId: !Ref LaunchTemplate
ServiceRole:
Ref: BatchServiceRole
Version: !GetAtt LaunchTemplate.LatestVersionNumber
# Launch template - increase default storage available
# https://repost.aws/knowledge-center/batch-job-failure-disk-space
# https://docs.aws.amazon.com/batch/latest/userguide/launch-templates.html
Expand Down

0 comments on commit e83484a

Please sign in to comment.