Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ECS] [request]: Support Ubuntu 22.04 #2064

Closed
katsew opened this issue Jul 6, 2023 · 1 comment
Closed

[ECS] [request]: Support Ubuntu 22.04 #2064

katsew opened this issue Jul 6, 2023 · 1 comment
Labels
Proposed Community submitted issue

Comments

@katsew
Copy link

katsew commented Jul 6, 2023

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Tell us about your request
I request the support Ubuntu 22.04 for ecs-agent (or ecs-init maybe?).
I found the issue at aws/amazon-ecs-agent#3770 and routed to here.

Which service(s) is this request for?
ECS

Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard?
I've installed the ecs-agent via deb file documented on here.
However, the ecs-agent lauched by systemd service cannot launch the ECS Service and ECS Task,
as the same issue as aws/amazon-ecs-agent#3227.

Are you currently working around this issue?
I've tested the command documented on here, and it seems to be worked (but not fully tested).

docker run --name ecs-agent \
    --detach=true \
    --restart=on-failure:10 \
    --volume=/var/run/docker.sock:/var/run/docker.sock \
    --volume=/var/log/ecs:/log \
    --volume=/var/lib/ecs/data:/data \
    --net=host \
    --env-file=/etc/ecs/ecs.config \
    --env=ECS_LOGFILE=/log/ecs-agent.log \
    --env=ECS_DATADIR=/data/ \
    --env=ECS_ENABLE_TASK_IAM_ROLE=true \
    --env=ECS_ENABLE_TASK_IAM_ROLE_NETWORK_HOST=true \
    amazon/amazon-ecs-agent:latest

Additional context

Service Type: DAEMON
Launch Type: EC2

$ uname -r
5.19.0-1028-aws
$ cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04.2 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.2 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy

Attachments

The task definition and ecs.config that I use to test is something like this

@katsew katsew added the Proposed Community submitted issue label Jul 6, 2023
@sparrc
Copy link

sparrc commented Jan 16, 2024

Hi everyone, this is now supported in agent/init version 1.80.0: https://github.com/aws/amazon-ecs-agent/releases.

Support was added via this PR: aws/amazon-ecs-agent#4062

Working on updating the docs now.

@sparrc sparrc closed this as completed Jan 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Proposed Community submitted issue
Projects
None yet
Development

No branches or pull requests

2 participants