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

Remove GenericBaseModel.get_cfn_attribute and improve stack failure reporting #8792

Merged
merged 5 commits into from Aug 2, 2023

Conversation

dominikschubert
Copy link
Member

Changes

  • Remove GenericBaseModel.get_cfn_attribute and unify code paths between legacy and new providers
  • Improve stack failure reporting a tiny bit

Previously the ResourceStatusReason on the stack failure was empty, now it's set to the string representation of the caught exception. This is currently only enabled when CFN_VERBOSE_ERRORS is set though. We should probably make this the default though in the next minor release to increase parity.

New stack status:

{"LogicalResourceId": "stack-9645eb0a", "ResourceType": "AWS::CloudFormation::Stack", "ResourceStatus": "CREATE_FAILED", "ResourceStatusReason": "Resource type AWS::SSM::Parameter does not support attribute {Invalid}"}

We might also want to by start failing stacks by default when outputs can't be resolved but since this differs quite a bit from the current behavior I think we should have a deprecation path for this.

@dominikschubert dominikschubert self-assigned this Aug 1, 2023
@dominikschubert dominikschubert added the semver: patch Non-breaking changes which can be included in patch releases label Aug 1, 2023
@github-actions
Copy link

github-actions bot commented Aug 1, 2023

LocalStack Community integration with Pro

       2 files         2 suites   1h 22m 51s ⏱️
2 297 tests 1 923 ✔️ 374 💤 0
2 298 runs  1 923 ✔️ 375 💤 0

Results for commit b621933.

♻️ This comment has been updated with latest results.

@coveralls
Copy link

Coverage Status

coverage: 82.689% (+0.009%) from 82.68% when pulling b621933 on remove-get_cfn_attribute into 7710a0a on master.

@dominikschubert dominikschubert marked this pull request as ready for review August 1, 2023 18:11
Copy link
Member

@pinzon pinzon left a comment

Choose a reason for hiding this comment

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

Awesome 🚀

@dominikschubert dominikschubert merged commit 838f1ff into master Aug 2, 2023
25 checks passed
@dominikschubert dominikschubert deleted the remove-get_cfn_attribute branch August 2, 2023 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver: patch Non-breaking changes which can be included in patch releases
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants