Merged
Conversation
marcel-dias
approved these changes
Feb 26, 2026
There was a problem hiding this comment.
Pull request overview
This pull request enhances the permanent_resources_audit.yml workflow to gracefully handle disabled or inaccessible AWS and Azure regions. The workflow now checks region accessibility before running audit steps, preventing failures when regions cannot be accessed due to being disabled, not opted-in, or having permission issues.
Changes:
- Added region accessibility checks for both AWS and Azure before running audit operations
- Made all audit and notification steps conditional based on region accessibility status
- Implemented consistent error pattern matching to detect common region access issues across both cloud providers
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related to https://camunda.slack.com/archives/C05S0M7KG6A/p1772100692611709
and fixes the failure of #399
This pull request improves the robustness and reliability of the
permanent_resources_audit.ymlworkflow by adding explicit checks for AWS and Azure region accessibility before running audit steps. If a region is disabled or inaccessible, the workflow now skips auditing and related steps for that region, preventing unnecessary errors and failures.Key changes grouped by cloud provider:
AWS region accessibility handling:
Install Cloud Nuke,Load allowlist for region,Run Cloud Nuke in Dry-Run mode, Slack channel/message/report steps) to conditionally run only if the region is accessible. [1] [2] [3] [4] [5]Azure region accessibility handling:
Audit Azure Permanent Resources, Slack channel/message/report steps) to conditionally run only if the region is accessible. [1] [2] [3]