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.
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?
Thank you for the question. I have added the solution to the end of the post.
Leave a comment