-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
SSM Agent Installation fails if already installed #1500
Comments
Feel free to open a PR, you can do a check like this to only install when necessary: amazon-eks-ami/scripts/install-worker.sh Lines 96 to 97 in 7e6c213
|
Thanks just did here #1501 |
Fixed with merging of #1501 |
What happened:
When custom AMI already has SSM agent the packer build fails
What you expected to happen:
skip the package gracefully
How to reproduce it (as minimally and precisely as possible):
Use CIS Amazon Linux 2 Benchmark - STIG as base AMI
Returns Error:
Anything else we need to know?:
This worked until v20230816 release.
If I just run
sudo yum install -y amazon-ssm-agent
ininstall-worker.sh
the build runs fine. It doesn't not when specifying an RPM packagesudo yum install -y https://s3.${BINARY_BUCKET_REGION}.${S3_DOMAIN}/amazon-ssm-${BINARY_BUCKET_REGION}/${SSM_AGENT_VERSION}/linux_${ARCH}/amazon-ssm-agent.rpm
This relates to #685
Maybe just adding a check for agent or/and agent version would suffice.
Environment:
aws eks describe-cluster --name <name> --query cluster.platformVersion
):aws eks describe-cluster --name <name> --query cluster.version
): 1.27.6uname -a
):cat /etc/eks/release
on a node):The text was updated successfully, but these errors were encountered: