AWS - Not able to execute a shell script (./[login to view URL]) when passed as user data while launching an Ec2 instance!

I am launching a AMI in AWS by passing the below script in the user data. In the logs I can see that all the lines before ./[login to view URL] are getting executed.

But when I am trying to run the same script directly on EC2 instance it is working fine.

Keahlian: Layanan Situs Amazon, Linux, PHP, Shell Script, Administrator Sistem

Lihat lebih lanjut: ec2 user data script not running, ec2 user data script not running windows, aws user data windows, cloud-init aws, aws ec2 userdata persist, aws ec2 run-instances user-data, cloudformation userdata, aws cli bash script, php, linux, amazon web services, shell script, system admin

Tentang Pemberi kerja:
( 0 ulasan ) United States

ID Proyek: #17309783

Diberikan kepada:


I have 16 years of experience in web hosting, server administration and php programming See my previous works at Message me, let's discuss the project.

$30 USD dalam 1 hari
(607 Ulasan)

9 freelancer menawar dengan rata-rata $24 untuk pekerjaan ini

$25 USD dalam 1 hari
(149 Ulasan)
$25 USD dalam 1 hari
(11 Ulasan)

Can I have a loook? Devops guy here, would love to fix this :) I can help you in TeamViewer and work on it :)

$20 USD dalam 1 hari
(7 Ulasan)

Hi, I can do this on the fly. I have been working as a DevOps at [login to view URL] over the last few years. It’s a in-house software solution, providing lifetime support for [login to view URL] ,ERP, [login to view URL], br Lebih banyak

$25 USD dalam 1 hari
(5 Ulasan)

hello, this is because of SSM Role is not set for the instance. It can be fixed quickly

$20 USD dalam 1 hari
(3 Ulasan)

Hi, I am an experienced programmer and I'm sure I can complete your project asap. Please contact me and tell about your project details. I promise a high quality and punctual work. Thanks.

$25 USD dalam 1 hari
(3 Ulasan)
$20 USD dalam 1 hari
(0 Ulasan)
$25 USD dalam 3 hari
(0 Ulasan)