저는 간단한 cloudformation 스크립트를 사용하여 부트시 백그라운드 프로세스로 루비 스크립트를 실행하려고합니다.AWSCloudFormation - cfn-init가`ruby` 명령을 실행하지 못했습니다.
스크립트의 관련 섹션은
"AWS::CloudFormation::Init" : {
"config" : {
"sources" : {
"/etc/scripts" : "http://bootstrap-artifacts.s3.amazonaws.com/scripts.zip"
},
"commands" : {
"1" : {
"command" : "cd /etc/scripts/agent"
},
"2-start" : {
"command" : "nohup ruby agent.rb &"
}
}
}
}
그냥 zip 파일을 다운로드 및 스크립트가 올바른 디렉토리에 존재하는지 확인하는 것입니다. 또한 내 AMI에는
루비 2.0.0이 설치되어 있습니다.
나는 var에 \ 로그 \의 CFN-init.log 파일 그 \ 에 도움을
감사를 nohup: failed to run command 'ruby': No such file or directory
을 받고 계속!
. 스크립트는 다른 문제가 있음을 나타내는 문제없이 실행됩니다. – dopplesoldner