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

Terragrunt Run-All fails to Tag Azure Resource Group #188

Closed
away168 opened this issue Feb 28, 2024 · 1 comment
Closed

Terragrunt Run-All fails to Tag Azure Resource Group #188

away168 opened this issue Feb 28, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@away168
Copy link

away168 commented Feb 28, 2024

Describe the bug
When using Terragrunt Run-All on an azure resource group Terratag fails to tag the resource.

To Reproduce
A minimal Terraform configuration reproducing the issue:

if in env0 : Azure Credentials + Azure Cost Credentials
See attached zip containing folder structure / terragrunt structure

from either non-prod/us-west-2/qa or us-west-2/stage run: terragrunt run-all init
then run terratag -tags="{\"env0_environment_id\":\"b529e0ad-1654-41f6-8ffd-e997475d00ad\",\"env0_project_id\":\"800b61c0-c255-48f3-9899-d03e08d4a159\"}" -rename=false -type=terragrunt

Expected behavior
/opt/terratag -tags="{"env0_environment_id":"b529e0ad-1654-41f6-8ffd-e997475d00ad","env0_project_id":"800b61c0-c255-48f3-9899-d03e08d4a159"}" -rename=false -type=terragrunt

should tag azurerm/resource_group . it tags when NOT using terragrunt run-all.

Screenshots
CleanShot 2024-02-27 at 16 22 16

Error Message:

> /opt/terratag -tags="{\"env0_environment_id\":\"b529e0ad-1654-41f6-8ffd-e997475d00ad\",\"env0_project_id\":\"800b61c0-c255-48f3-9899-d03e08d4a159\"}" -rename=false -type=terragrunt
2024/02/28 00:16:37 [INFO] Processing file azurerg/main.tf
2024/02/28 00:16:37 [INFO] Processing file azurerg/.terragrunt-cache/7JlAHKdo_ukjvok99yXEM_hYmT8/1gNEc9rRZ3dGWVJkl05CoS02ndc/main.tf
2024/02/28 00:16:37 [INFO] Processing file azurerg/.terragrunt-cache/7JlAHKdo_ukjvok99yXEM_hYmT8/1gNEc9rRZ3dGWVJkl05CoS02ndc/provider.tf
2024/02/28 00:16:37 [INFO] Processing resource [azurerm_resource_group example]
2024/02/28 00:16:37 [INFO] No taggable resources found in file azurerg/.terragrunt-cache/7JlAHKdo_ukjvok99yXEM_hYmT8/1gNEc9rRZ3dGWVJkl05CoS02ndc/provider.tf - skipping
2024/02/28 00:16:37 [INFO] Processing resource [azurerm_resource_group example]
2024/02/28 00:16:38 [WARN]
 Skipped azurerm_resource_group as it is not YET supported
2024/02/28 00:16:38 [INFO] Resource not taggable, skipping.[azurerm_resource_group example]
2024/02/28 00:16:38 [INFO] No taggable resources found in file azurerg/main.tf - skipping
2024/02/28 00:16:38 [WARN] Skipped azurerm_resource_group as it is not YET supported
2024/02/28 00:16:38 [INFO] Resource not taggable, skipping.[azurerm_resource_group example]
2024/02/28 00:16:38 [INFO] No taggable resources found in file azurerg/.terragrunt-cache/7JlAHKdo_ukjvok99yXEM_hYmT8/1gNEc9rRZ3dGWVJkl05CoS02ndc/main.tf - skipping
2024/02/28 00:16:38 [INFO] Summary:
2024/02/28 00:16:38 [INFO] Tagged 0 resource/s (out of 2 resource/s processed)
2024/02/28 00:16:38 [INFO] In 0 file/s (out of 3 file/s processed)

** env0 settings **

  • Terraform version: [1.5.7] | TG [0.55.9]
  • AzureRM 3.93

Additional context

Workaround
No workarounds

tg-az-rg.zip

@TomerHeber TomerHeber added the bug Something isn't working label Feb 28, 2024
@TomerHeber TomerHeber self-assigned this Feb 28, 2024
@away168
Copy link
Author

away168 commented Feb 28, 2024

Addressed in #189

@away168 away168 closed this as completed Feb 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

No branches or pull requests

2 participants