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

Update amazon-ssm-agent to v3.3.987.0 #182

Merged
merged 2 commits into from
Oct 8, 2024

Conversation

koooosh
Copy link
Contributor

@koooosh koooosh commented Oct 7, 2024

Issue number:

N/A

Description of changes:

Update amazon-ssm-agent package to version 3.3.987.0, the latest available release: https://github.com/aws/amazon-ssm-agent/releases/tag/3.3.987.0

This new agent release altered appconfig.go, a file we patch, so also updating the patch.

Testing done:

Launched an aws-dev instance with the amazon-ssm-agent package added. Verified amazon-ssm-agent service is still running successfully on the host:

bash-5.1# systemctl status amazon-ssm-agent
● amazon-ssm-agent.service - Amazon SSM agent
     Loaded: loaded (/x86_64-bottlerocket-linux-gnu/sys-root/usr/lib/systemd/system/amazon-ssm-agent.service; enabled; preset: enabled)
     Active: active (running) since Mon 2024-10-07 09:06:15 UTC; 2min 18s ago
   Main PID: 1378 (amazon-ssm-agen)
      Tasks: 20 (limit: 18596)
     Memory: 58.1M
        CPU: 615ms
     CGroup: /system.slice/amazon-ssm-agent.service
             ├─1378 /usr/bin/amazon-ssm-agent
             └─1429 /usr/bin/ssm-agent-worker

Verified ECS Exec still works on aws-ecs-2 variant:

$ aws ecs run-task --cluster bottlerocket-test --task-definition nginx:3 --enable-execute-command 

$ aws ecs execute-command --cluster bottlerocket-test --task dff5515d0d00419d9c7b05bf7d867174 --interactive --command "/bin/sh"

The Session Manager plugin was installed successfully. Use the AWS CLI to start a session.


Starting session with SessionId: ecs-execute-command-5yddxxg93r3b3b653otcagd7au
# uname -a
Linux 7d259dbfa30f 6.1.109 #1 SMP PREEMPT_DYNAMIC Sat Oct  5 01:21:13 UTC 2024 x86_64 GNU/Linux

Terms of contribution:

By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.

Signed-off-by: Kush Upadhyay <kushupad@amazon.com>
Signed-off-by: Kush Upadhyay <kushupad@amazon.com>
@koooosh
Copy link
Contributor Author

koooosh commented Oct 7, 2024

Added ECS Exec testing output to the description. Thanks for the callout @ginglis13

@koooosh koooosh marked this pull request as ready for review October 7, 2024 20:43
@koooosh koooosh requested a review from yeazelm October 7, 2024 20:43
Copy link
Contributor

@yeazelm yeazelm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@koooosh koooosh merged commit f5577ab into bottlerocket-os:develop Oct 8, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants