-
Notifications
You must be signed in to change notification settings - Fork 47
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
add reason to CfnNotStabilizedException #364
base: master
Are you sure you want to change the base?
Conversation
* @param reason Reason why the resource did not stabilize. This should include the current and | ||
* desired state. | ||
* | ||
* Example: "Exceeded retry limit for DescribeResourceStatus. | ||
* Current Value: IN_PROGRESS. Desired Value: COMPLETE." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice, I like the docs and providing an example. Couple comments:
- I don't think desired state is necessary
- For AWS resources, it should include the current state, Api name in iam format (like ec2:DescribeInstances) and the RequestId for that API (for non AWS resources it would be whatever the equivalent debugging info)
The example here is also a little bit confusing. Is this one example or two examples? Here's one
* Instance Status: pending (Api: ec2:DescribeInstances, RequestId: abcd-efgh-ijkl)
* Current Status: modifying (Api: rds:DescribeDBClusters, RequestId: abcd-efgh-ijkl)
Another option here would be to take the apiName and requestid as parameters
@@ -25,14 +25,64 @@ public CfnNotStabilizedException(final Throwable cause) { | |||
super(cause, ERROR_CODE); | |||
} | |||
|
|||
/** | |||
* @param resourceTypeName |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: can remove this duplicate doc entry
The current stabilization error message "Resource of type '%s' with identifier '%s' did not stabilize." lacks a reason so users may not be able to determine the cause of the stabilization error.
Changes
Testing
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.