Open checkelmann opened 4 years ago
Hey Christian. I am doing all of my tests on EC2 - using an Amazon Linux 2 OS. Can you tell me which EC2 image you are using?
Hi Andi,
the default Amazon Linux ami-0947d2ba12ee1ff75 amzn2-ami-hvm-2.0.20200917.0-x86_64-gp2
As ec-user the $PATH
Variable for /usr/local/bin
is set, but not for root. It should work when running the installer with sudo
but if you switch to user root with sudo -i
and running the installer, it will fail like described above.
__| __|_ )
_| ( / Amazon Linux 2 AMI
___|\___|___|
https://aws.amazon.com/amazon-linux-2/
[ec2-user@ip-10-54-32-52 ~]$ echo $PATH
/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/ec2-user/.local/bin:/home/ec2-user/bin
[ec2-user@ip-10-54-32-52 ~]$ sudo -i
[root@ip-10-54-32-52 ~]# echo $PATH
/usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
[root@ip-10-54-32-52 ~]#
Hi,
When running the installer on a naked EC2 Instance, I'm getting this error while installing:
So helm is getting installed in /usr/local/bin but this is not within the PATH on a fresh ec2 with amazon linux on it.
A possible workaround would be adding the path variable before running the installation
PATH=/usr/local/bin:$PATH