When you launch an EC2 instance in AWS and the Chef script is trying to set tags on the instance you may get the error message:
The instance ID ‘…’ does not exist
It can happen when you launch the instance in one AWS account, and the tagging script tries to find the instance in another account.
Solution
When the tagging script runs make sure, the AWS credentials and the region point to the account and region where the instance was launched.
what’s the solution to this?
Hi Albert,
Thank you for the question. I have added the solution to the end of the post.
Laszlo