Were there any changes to EC2 instance startup today?

This morning (about 6 UTC) I realized an instance was not coming up like regularly. After some hours experimenting around I found out the problem was calling chef-solo at the end of UserData in its Cloudformation template. I changed the template and added a command and everything was working again. Now I ask myself, what has changed. The last time the instance came up with the old template was around 5 UTC.

EDIT: Resolved, see the reply of /u/steeeeeeved below.


Related discussions:

This is far more likely to be a chef issue than an AWS issue. Are the cookbooks downloading anything from the internet? If so is that something still there? Did the chef config or your networking config change?

No, not a chef issue. When calling chef-solo in UserData using the aws cli to get a file from one of my s3 buckets fails (missing credentials). When calling chef-solo as command (or manually) it works. There were no changes to the AMI or the cookbooks and the chef version is baked into the AMI. Also there was no change to the S3 bucket. I’m quite certain something related to the instance startup has changed.

EDIT: I’m just really curious because calling chef-solo in UserData was the standard way to do it in 2014 (at least the example template did it like that) and there are probably some people out there experiencing the same difficulties.

Yes

The ASG problem from earlier today…

Between November 2 11:44 PM and November 3 6:44 AM PDT, a subset of customers experienced errors while launching EC2 Instances via CloudFormation. This was caused by a recent change made to the way cfn-init authenticates. We have resolved the issue and new EC2 instances are starting correctly. Instances that were launched via CloudFormation during this period of time may not have booted successfully and may need to be replaced. To avoid an instance replacement, customers can also run ‘yum update’ and restart cfn-hup to download and apply the latest cfn-init package."

Thank you. That is what I was looking for. Glad they fixed it quickly, because that means I don’t have to change some other templates tomorrow :slight_smile:

Where did you see this?

That sounds like there might be a problem with the IAM setup for the instance. Are the new instances being put into an IAM role that allows the S3 bucket and it’s contents to be read? You are not using credentials on the instances themselves instead of an IAM role are you? You might want to double check in case someone else changed something.

They use IAM Roles. It probably was a temporary condition caused by Amazon making changes to ASGs. See the comment of /u/steeeeeeved.

Came from a ex work colleague earlier in today after he was bitten by it, looks like it’s from the aws status page though? (Based on style of writing)