When an ASG creates instances it propagates the tags at launch. Unlike a manually created instance, these tags are not written to the instance until after the event fires. This introduces a race condition where when the Lambda function pulls tags for the instance none are available.
When an ASG creates instances it propagates the tags at launch. Unlike a manually created instance, these tags are not written to the instance until after the event fires. This introduces a race condition where when the Lambda function pulls tags for the instance none are available.
I believe a 60 second sleep would resolve this.