Skip to content

Commit ed40709

Browse files
CGarcespditommaso
andauthored
Upgrade AWS instructions to AL2023 (#6183) [ci skip]
Signed-off-by: Carlos Garcés <CGarces@users.noreply.github.com> Co-authored-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com>
1 parent 4e7c062 commit ed40709

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

docs/aws.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -348,14 +348,13 @@ The grandparent directory of the `aws` tool will be mounted into the container a
348348

349349
### Docker installation
350350

351-
Docker is required by Nextflow to execute tasks on AWS Batch. The **Amazon ECS-Optimized Amazon Linux 2 (AL2) x86_64 AMI** has Docker installed, however, if you create your AMI from a different AMI that does not have Docker installed, you will need to install it manually.
351+
Docker is required by Nextflow to execute tasks on AWS Batch. The **Amazon ECS-optimized Amazon Linux 2023 AMI** has Docker installed, however, if you create your AMI from a different AMI that does not have Docker installed, you will need to install it manually.
352352

353353
The following snippet shows how to install Docker on an Amazon EC2 instance:
354354

355355
```bash
356356
# install Docker
357357
sudo yum update -y
358-
sudo amazon-linux-extras install docker
359358
sudo yum install docker
360359

361360
# start the Docker service
@@ -365,21 +364,20 @@ sudo service docker start
365364
sudo usermod -a -G docker ec2-user
366365
```
367366

368-
You may have to reboot your instance for the changes to `ec2-user` to take effect.
367+
You must logging out and logging back in again to use the new `ec2-user` permissions.
369368

370369
These steps must be done *before* creating the AMI from the current EC2 instance.
371370

372371
### Amazon ECS container agent installation
373372

374373
The [ECS container agent](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ECS_agent.html) is a component of Amazon Elastic Container Service (Amazon ECS) and is responsible for managing containers on behalf of ECS. AWS Batch uses ECS to execute containerized jobs, therefore it requires the agent to be installed on EC2 instances within your Compute Environments.
375374

376-
The ECS agent is included in the **Amazon ECS-Optimized Amazon Linux 2 (AL2) x86_64 AMI** . If you use a different base AMI, you can also install the agent on any EC2 instance that supports the Amazon ECS specification.
375+
The ECS agent is included in the **Amazon ECS-optimized Amazon Linux 2023 AMI** . If you use a different base AMI, you can also install the agent on any EC2 instance that supports the Amazon ECS specification.
377376

378377
To install the agent, follow these steps:
379378

380379
```bash
381-
sudo amazon-linux-extras disable docker
382-
sudo amazon-linux-extras install -y ecs
380+
sudo yum install ecs-init
383381
sudo systemctl enable --now ecs
384382
```
385383

0 commit comments

Comments
 (0)