Skip to content

Instantly share code, notes, and snippets.

@jesseloudon
Created June 26, 2020 07:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jesseloudon/7d1d23327e413d36d9a7b3fc5227fe15 to your computer and use it in GitHub Desktop.
Save jesseloudon/7d1d23327e413d36d9a7b3fc5227fe15 to your computer and use it in GitHub Desktop.
All resources created by a resource block that uses count = length(var.variableName) can be referenced using ${resourceProvider.resourceType.resourceName.*.output}.
output "addTagToRG_policy_ids" {
value = "${azurerm_policy_definition.addTagToRG.*.id}"
description = "The policy definition ids for addTagToRG policies"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment