- [[AWS]] [[Amazon EC2]]
- These logs can be useful in determining why certain instances have been terminated or why they have not been started.
- The stack events will tell you how far AWS got in [[Autoscaling]] your [[EC2 Auto Scaling Groups (ASG)]]. Stack events are useful in cases where the ASG was never created or failed upon creation.
- Pay attention to the different events being reported:
- `AWS::CloudFormation::Stack`
- `AWS::AutoScaling::AutoScalingGroup`
- `AWS::EC2::SecurityGroup`
- The log says whether each step is in progress or has been completed.
- Here's an example of this log:
- ```javascript
["2020-09-03 09:47:32 UTC CREATE_COMPLETE AWS::CloudFormation::Stack ","
2020-09-03 09:47:31 UTC CREATE_COMPLETE AWS::AutoScaling::AutoScalingGroup ","
2020-09-03 09:47:30 UTC CREATE_IN_PROGRESS AWS::AutoScaling::AutoScalingGroup Resource creation Initiated","
2020-09-03 09:47:30 UTC CREATE_IN_PROGRESS AWS::AutoScaling::AutoScalingGroup ","
2020-09-03 09:47:28 UTC CREATE_COMPLETE AWS::AutoScaling::LaunchConfiguration ","
2020-09-03 09:47:28 UTC CREATE_IN_PROGRESS AWS::AutoScaling::LaunchConfiguration Resource creation Initiated","
2020-09-03 09:47:27 UTC CREATE_IN_PROGRESS AWS::AutoScaling::LaunchConfiguration ","
2020-09-03 09:47:25 UTC CREATE_COMPLETE AWS::EC2::SecurityGroup ","
2020-09-03 09:47:25 UTC CREATE_IN_PROGRESS AWS::EC2::SecurityGroup Resource creation Initiated","
2020-09-03 09:47:20 UTC CREATE_IN_PROGRESS AWS::EC2::SecurityGroup ","
2020-09-03 09:47:16 UTC CREATE_IN_PROGRESS AWS::CloudFormation::Stack User Initiated"]```
- [[AWS Service Quotas]] have been reached.
- `UTC CREATE_FAILED AWS::AutoScaling::AutoScalingGroup You have requested more instances (3) than your current instance limit of 2 allows for the specified instance type. Please visit http://aws.amazon.com/contact-us/ec2-request to request an adjustment to this limit. Launching EC2 instance failed.`
- Solution: Contact [[AWS]] and request an increase in quotas.