[英]How can I change the directory that packer runs the AMI provisioning script from /tmp to /opt
我需要从/ tmp / packer-shell975270284更改加壳程序运行AMI设置脚本的目录,因为我们的实例不允许以/ tmp形式运行脚本。
该脚本需要在/ opt或/ home / ec2-user中运行。 它将拥有权限的地方
以下是Ansible Playbook运行后出现的错误。
==> amazon-ebs: Provisioning with shell script: /tmp/packer-shell975270284
Build 'amazon-ebs' errored: Error uploading script: scp: /tmp/script_5412.sh: Permission denied.
==> Some builds didn't complete successfully and had errors.
==> Builds finished but no artifacts were created.
您设置了remothe_folder
,请参阅文档
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.