Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

provider/aws: Show last scaling activity when ASG creation/update fails #14480

Merged
merged 1 commit into from May 15, 2017

Conversation

radeksimko
Copy link
Member

Closes #9074

Config to reproduce the error: https://gist.github.com/radeksimko/c2418796a87d8458d85abb2767c5e9a6

Before

Error applying plan:

1 error(s) occurred:

* aws_autoscaling_group.bar: 1 error(s) occurred:

* aws_autoscaling_group.bar: "radeksimko-terraform-test": Waiting up to 20s: Need at least 4 healthy instances in ASG, have 0

After

Error applying plan:

1 error(s) occurred:

* aws_autoscaling_group.bar: 1 error(s) occurred:

* aws_autoscaling_group.bar: "radeksimko-terraform-test": Waiting up to 20s: Need at least 4 healthy instances in ASG, have 0 Most recent activity: {
  ActivityId: "f9b6fb3b-4996-4f2e-86fa-cea062ae7730",
  AutoScalingGroupName: "radeksimko-terraform-test",
  Cause: "At 2017-05-15T06:35:52Z a user request created an AutoScalingGroup changing the desired capacity from 0 to 4.  At 2017-05-15T06:35:55Z an instance was started in response to a difference between desired and actual capacity, increasing the capacity from 0 to 4.",
  Description: "Launching a new EC2 instance.  Status Reason: Value (wrongval) for parameter virtualName is invalid. Expected format: 'ephemeral<NUMBER>'. Launching EC2 instance failed.",
  Details: "{\"Availability Zone\":\"us-east-2a\"}",
  EndTime: 2017-05-15 06:35:56 +0000 UTC,
  Progress: 100,
  StartTime: 2017-05-15 06:35:56.153 +0000 UTC,
  StatusCode: "Failed",
  StatusMessage: "Value (wrongval) for parameter virtualName is invalid. Expected format: 'ephemeral<NUMBER>'. Launching EC2 instance failed."
}

Copy link
Contributor

@stack72 stack72 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice!

@radeksimko radeksimko merged commit 9c2a3d6 into master May 15, 2017
@radeksimko radeksimko deleted the f-aws-asg-activity-msg branch May 15, 2017 08:30
@ghost
Copy link

ghost commented Apr 12, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@hashicorp hashicorp locked and limited conversation to collaborators Apr 12, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

aws autoscaling, do not have sufficient capacity
2 participants