Last few days my script (aws-cli) is unable to stop OpsWorks instance. I didn't change anything. When I log into aws.amazon.com it shows:
Status: stop_failed
Message: An error occurred while stopping the instance MyInstanceName
Internal Error
How to find out the root cause of the Internal Error? OpsWorks logs shows no errors or warnings.
If I try to stop it using web interface it stops after about 10 minutes.
Update 1: I run Ubuntu 16.04 LTS, and I didn't find any errors in Ubuntu log files.