-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
CFnV2: add stack events when there are errors during preprocessing #12892
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
Conversation
LocalStack Community integration with Pro 2 files ± 0 2 suites ±0 23m 27s ⏱️ - 1h 21m 48s Results for commit 07f06d0. ± Comparison against base commit 75858d8. This pull request removes 4035 and adds 3 tests. Note that renamed tests count towards both.♻️ This comment has been updated with latest results. |
Test Results (amd64) - Integration, Bootstrap 5 files ± 0 5 suites ±0 34m 43s ⏱️ - 1h 46m 53s Results for commit 07f06d0. ± Comparison against base commit 75858d8. This pull request removes 4370 and adds 3 tests. Note that renamed tests count towards both.♻️ This comment has been updated with latest results. |
pinzon
left a comment
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.
LGTM 👍
| def to_change_action(self) -> ChangeAction: | ||
| # Convert this change type into the change action used throughout the CFn API | ||
| return { | ||
| ChangeType.CREATED: ChangeAction.Add, | ||
| ChangeType.MODIFIED: ChangeAction.Modify, | ||
| ChangeType.REMOVED: ChangeAction.Remove, | ||
| }.get(self, ChangeAction.Add) | ||
|
|
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.
comment: Nice! 👍
Motivation
While the provider is still new with edge cases, it's frustrating to find out the cause of the error if it occurs during preprocessing.
With this change, a stack event is captured during resource deployment time so at least the error message is shown in the stack events.
Changes