Category : amazon-web-services

I’m facing issue when mounting Fsx through userdata to windows ec2 instance. After login in to ec2 instance, I can see the mounted drive as "Disconnected Network Drive" Case: mounting fsx to ec2 instance through userdata in cloudformation template results in disconnected Network Drive. login to ec2 instance and doing command manually through PowerShell works ..

Read more

AWS user data is not running in windows custom AMI , because instance initialization script stuck at system startup. user-data executed successfully if we execute user-data script manually from task schedular else it’s stuck at  " tag was provided.. running PowerShell content" (logs from C:ProgramDataAmazonEC2-WindowsLaunchLogUserdataExecution) userdata logs Instance initialization hung screenshot  in the user-data we are trying ..

Read more

AWS user data is not running in windows custom AMI , because instance initialization script stuck at system startup. user-data executed successfully if we execute user-data script manually from task schedular else it’s stuck at  " tag was provided.. running PowerShell content" (logs from C:ProgramDataAmazonEC2-WindowsLaunchLogUserdataExecution) userdata logs Instance initialization hung screenshot  in the user-data we are trying ..

Read more

AWS custom AMI of "windows server 2019 Datacenter" not executing user data. powershell script stuck at " tag was provided.. running powershell content". script: <powershell> cd ‘C:Projects’ pm2 kill pm2 start </powershell> <persist>true</persist> also tried with "runAsLocalSystem" Below are the Userdata logs of EC2 insatnce. 2021/06/15 09:35:07Z: Userdata execution begins 2021/06/15 09:35:07Z: <persist> tag was ..

Read more

I am running a Get-process command on windows ec2 instance using AWS Run Command’s Aws-RunPowershellScript document and it works successfully. But when I am using a aws event bridge scheduler for the same I am getting the following error: failed to run commands: fork/exec /usr/bin/pwsh: no such file or directory It seems when Run command ..

Read more