簡體   English   中英

如何將打包程序運行AMI設置腳本的目錄從/ tmp更改為/ opt

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM