Closed eravindar12 closed 3 months ago
This is because you're using a "CIS hardened" base image, those have some requirement around not allowing executables in /tmp
. You can set the working_dir
variable of the AMI template to another location for your use case.
What happened:
I am attempting to use the AL2023 base AMI for EKS optimized with the AMI Release v20240531. However, I am encountering a "permission denied" error. I have tried several different methods to resolve this issue, including using "{{.Vars}} bash '{{.Path}}'", but none have been successful. This appears to be a bug.
Do you have any suggestions for a workaround to fix this issue?
Error Details: amazon-ebs: sudo: unable to execute /tmp/worker/awscli-install/aws/install: Permission denied
code snippet
template/al2023/install-workser.sh
template.json
Environment: