User-data scripts is not running on my custom AMI, but working in standard Amazon linux

后端 未结 11 1367
南方客
南方客 2020-12-08 02:15

I searched a lot of topic about \"user-data script is not working\" in these few days, but until now, I haven\'t gotten any idea about my case yet, please help me to figure

11条回答
  •  旧巷少年郎
    2020-12-08 02:18

    On ubuntu 16, removing /var/lib/cloud/* does not work. I removed only instance(s) from the folder /var/lib/cloud/ and then it ran fine for me

    I ran:

    sudo rm /var/lib/cloud/instance
    sudo rm /var/lib/cloud/instances
    

    Then I retried my user data script and it worked fine

提交回复
热议问题