Skip to content

fix(cloudformation): add error message to import resource state failure#8632

Open
gemammercado wants to merge 7 commits intoaws:masterfrom
gemammercado:fix/resource-import-failure-reasons
Open

fix(cloudformation): add error message to import resource state failure#8632
gemammercado wants to merge 7 commits intoaws:masterfrom
gemammercado:fix/resource-import-failure-reasons

Conversation

@gemammercado
Copy link
Copy Markdown
Contributor

Problem:

When a resource fails to import, the error message displayed to the user is currently just 'Failed'. Not useful for debugging.

Solution:

Display the AWS error message that includes the actual failure reason(s).


  • Treat all work as PUBLIC. Private feature/x branches will not be squash-merged at release time.
  • Your code changes must meet the guidelines in CONTRIBUTING.md.
  • License: I confirm that my contribution is made under the terms of the Apache 2.0 license.

@gemammercado gemammercado requested a review from a team as a code owner March 2, 2026 15:50
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Mar 2, 2026

  • This pull request modifies code in src/* but no tests were added/updated.
    • Confirm whether tests should be added or ensure the PR description explains why tests are not required.

Comment thread packages/core/src/awsService/cloudformation/resources/resourcesManager.ts Outdated
Comment thread packages/core/src/awsService/cloudformation/resources/resourcesManager.ts Outdated
@gemammercado gemammercado force-pushed the fix/resource-import-failure-reasons branch 2 times, most recently from 14ac123 to 741c00b Compare April 29, 2026 18:54
@gemammercado gemammercado force-pushed the fix/resource-import-failure-reasons branch from 741c00b to 89e894e Compare April 30, 2026 18:18
reasons.push(`[${id}: ${reason}]`)
}
}
return reasons.length > 0 ? `: ${reasons.join(', ')}` : ''
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Does this render nicely if there is a lot of errors?
Should we set a limit?
Does the notification show up collapsed after the first part?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants