Is there a good/preferred publicly available AMI t...
# nostupidquestions
a
Is there a good/preferred publicly available AMI that people use for their batch envs when running pipelines on AWS batch?
u
I use Amazon Linux 2023 ECS Optimised for worker instances.
Copy code
al2023-ami-ecs-hvm-2023.0.20251015-kernel-6.1-x86_64
For the head node, I use the regular AL 2023.
a
That one has the aws cli which you need right?
u
No, unfortunately not. It is in a location which will be masked by the tool (let’s say FastQC) container. You will have to install it in a place such as ec2-user home/miniconda. You will have to start an instance with it, install the awscli at a preferred location and then create your own custom AMI from the running instance.
a
Ok, so you used that one then modified it as such?
u
Yes, true. If you plan to use EBS, its size can also be set when creating the custom AMI. EBS can run out of space so maybe consider EFS but that can be pricey. The benefit of using the ECS optimised one is that lot’s of ECS/docker related boilerplate has already been taken care of by AWS.
a
Hmm ok, it's a shame that there isn't one made public with the aws-cli by Seqera/nf-core although I'm not sure how easy that is to do
🤔 1
I actually see now from here that the Platform docs use a launch template which installs it on top of (I assume) the default AMI 🤔
u
Yes, true. The launch template is also a common method.
a
When running on AWS batch are you using Platform? I am wondering whether the simplest setup may be to follow that manual env for Platform guide but I am not quite clear on whether that has drawbacks when not launching via platform
u
No I am not using the platform. Plain AWS Batch.
a
Do you mind me asking if you have any insights on getting setup? My current plan is to create a CDK app based on the roles, policies etc of that Platform guide
u
Yes, that’s the way to do it. CDK, Terraform, etc. can be very helpful for keeping the infrastructure organised.
a
Where do you run your head jobs? I realise that platform must have a job submission template for head jobs which isn’t available publicly, but I’m not sure if I even want to run them on Batch
u
You can actually run them locally on your own machine or a HPC machine. The credentials need to be setup, though. Or run it on a onDemand EC2 instance outside the Batch.