Skip to content
This repository was archived by the owner on Aug 9, 2023. It is now read-only.

Commit 3218203

Browse files
authored
(re)implement SSM access to batch workers (#75)
* bug fix * explicitly stop ecs before starting ebs autoscale on /var/lib/docker * move nextflow additions to before start ecs * fix autoexpanding docker data volume add steps missing that are documented here: https://docs.docker.com/storage/storagedriver/btrfs-driver/ * fix scratch mount point mapping * Adding SSM agent and permissions to Batch hosts to allow SSM capabili… (#74) * Adding SSM agent and permissions to Batch hosts to allow SSM capabilities like Session Manager to facilitate troubleshooting via SSH without needing an EC2 keypair. * Missed the already existing managed arn section.
1 parent 8277375 commit 3218203

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/templates/aws-genomics-iam.template.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ Resources:
9494
ManagedPolicyArns:
9595
- "arn:aws:iam::aws:policy/service-role/AmazonEC2ContainerServiceforEC2Role"
9696
- "arn:aws:iam::aws:policy/AmazonS3ReadOnlyAccess"
97+
- "arn:aws:iam::aws:policy/AmazonSSMManagedInstanceCore"
9798
GenomicsEnvBatchInstanceProfile:
9899
Type: AWS::IAM::InstanceProfile
99100
Properties:

src/templates/aws-genomics-launch-template.template.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,11 +143,14 @@ Resources:
143143
- python27-pip
144144
- sed
145145
- wget
146+
- amazon-ssm-agent
146147
147148
runcmd:
148149
- pip install -U awscli boto3
149150
- scratchPath="${ScratchMountPoint}"
150151
- artifactRootUrl="${ArtifactRootUrl}"
152+
- start amazon-ssm-agent
153+
151154
${ECSAdditions}
152155
153156
--==BOUNDARY==--

0 commit comments

Comments
 (0)