We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
+1
Allow to look up data by id to:
data
id
variables
module
name
location
tags
resource
azurerm
azuread
providers
# ROOT MODULE resource "azurerm_policy_set_definition" "policy" { name = "my_policy" ... } module "child_1_module"{ source = "./child" policy_id = azurerm_policy_set_definition.policy.id }
# CHILD MODULE variable "policy_id" {} data "azurerm_policy_set_definition" "policy" { id = var.policy_id } resource "azurerm_policy_assignment" "policy_scope" { name = "${data.azurerm_policy_set_definition.policy.name}_scope" display_name = "${data.azurerm_policy_set_definition.policy.display_name} Scope" scope = var.scope policy_definition_id = data.azurerm_policy_set_definition.policy.id ... }
The text was updated successfully, but these errors were encountered:
enabled
count
No branches or pull requests
Community Note
+1
Description
Allow to look up
data
byid
to:variables
explicitly passed into amodule
likename
,location
,tags
,..resource
used fordata
doesn't exist yet.New or Affected Resource(s)
data
resources forazurerm
andazuread
data
providers
Potential Terraform Configuration
The text was updated successfully, but these errors were encountered: