I have a user-data script file when launching an EC2 instance from an AMI image. The script uses AWS but I get "aws: command not found". The AWS-CLI is installed as part of the AMI (I can use it once the instance is up) but for some reason the script cannot find it.
Am I missing something? any chance that the user-data script runs before the image is loaded (I find it hard to believe)? Maybe the path env variable is not set at this point?
Thanks,