0

Usually my AutoScaling group spawns instances using Launch Configuration pretty normally but today it gets stuck whilst launching a new instance at the [cloud-init] checking scripts ... Image for reference, I don't know what is wrong. It just shows me error:Failed Stuck on cloud-init script image

MLu
  • 24,849
  • 5
  • 59
  • 86
Moorani
  • 1
  • 1

1 Answers1

0

I was installing libpq-dev and it was prompting to restart services. And traditional -y wasn't working, so I tried the command below (to accept defaults) instead and it worked.

sudo DEBIAN_FRONTEND=noninteractive apt-get -yq install libpq-dev

Reference thread: https://unix.stackexchange.com/questions/146283/

Moorani
  • 1
  • 1