Skip to content

Commit e2f2d16

Browse files
JohannesRudolphmeshkodiak[bot]
authored andcommitted
fix: remove azurerm provider declaration
this fixes an issue where an explicitly configured provider in a parent configuration is not properly obeyed. In this particular case it can lead to the module executing with azure cli authentication instead of e.g. an explicitly configured azure service principal. https://www.terraform.io/language/modules/develop/providers > A module intended to be called by one or more other modules must not contain > any provider blocks.
1 parent f75b7b4 commit e2f2d16

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

main.tf

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,7 @@ terraform {
1111
}
1212
}
1313
}
14-
15-
provider "azurerm" {
16-
features {}
17-
}
18-
14+
1915
data "azurerm_management_group" "root" {
2016
name = var.mgmt_group_name
2117
}

0 commit comments

Comments
 (0)