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 resource group datasource #170

Merged
merged 1 commit into from
Mar 7, 2025
Merged

Remove resource group datasource #170

merged 1 commit into from
Mar 7, 2025

Conversation

zioproto
Copy link
Contributor

Description

Remove data source for the resource group as explained here https://youtu.be/l8k_cOHep28?si=K8SefSHfsxP4V33Z

Fixes #169
-->

Type of Change

  • Non-module change (e.g. CI/CD, documentation, etc.)
  • Azure Verified Module updates:
    • Bugfix containing backwards compatible bug fixes
      • Someone has opened a bug report issue, and I have included "Closes #{bug_report_issue_number}" in the PR description.
      • The bug was found by the module author, and no one has opened an issue to report it yet.
    • Feature update backwards compatible feature updates.
    • Breaking changes.
    • Update to documentation

}

locals {
network_resource_group_id = regex("(.*?/resourceGroups/[^/]+)", var.network.node_subnet_id)[0]
Copy link
Member

Choose a reason for hiding this comment

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

might we have a scenario where var.network.node_subnet_id is going to be empty? should we add a check for this?

@nellyk nellyk merged commit f356cc4 into main Mar 7, 2025
13 of 17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs: Triage 🔍 Maintainers need to triage still
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[AVM Module Issue]: Resource group is referenced as data in main.tf and must exist
2 participants