-
Notifications
You must be signed in to change notification settings - Fork 10
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 destroyCf goal that deletes CloudFormation stack. #19
Conversation
long t = System.currentTimeMillis(); | ||
|
||
while (true) { | ||
List<Stack> stacks; | ||
try { | ||
stacks = cloudFormationClient.describeStacks(describeRequest).getStacks(); | ||
} catch (AmazonCloudFormationException e) { | ||
log.warn(e.getMessage()); |
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.
Why have you removed the warning?
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.
When stack is destroyed, in my tests it always throws exception here saying that stack is not found - being a bit misleading because this is exactly what was meant to happen. Perhaps it could be changed to info
?
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.
info sounds fine if you could make that change
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.
Fixed.
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.
Looks good, thanks for the contribution!
I've deployed this change to Maven Central in 0.2.26. |
Fantastic, thank you! |
I would like to use this plugin for running integration tests, where in pre-integration-test phase stack is created and in post-integration-test stack is destroyed.
This PR adds a goal to destroy CloudFormation stack.