Open christerengman opened 6 days ago
[!WARNING] Tagging the AVM Core Team (@Azure/avm-core-team-technical-terraform) due to a module owner or contributor having not responded to this issue within 3 business days. The AVM Core Team will attempt to contact the module owners/contributors directly.
[!TIP]
- To prevent further actions to take effect, the "Status: Response Overdue 🚩" label must be removed, once this issue has been responded to.
- To avoid this rule being (re)triggered, the ""Needs: Triage :mag:" label must be removed as part of the triage process (when the issue is first responded to)!
Check for previous/existing GitHub issues
Issue Type?
Bug
(Optional) Module Version
0.1.5
(Optional) Correlation Id
No response
Description
Minimal terraform config (for me tag configuration was required to achieve desired state as we have implemented tag inheritance using policies, but I guess you could skip that if that's not the case):
terraform apply
, first run: Success`terraform applyplResult, second run: ╷ │ Error: Unsupported attribute │ │ on .terraform\modules\redis\outputs.tf line 25, in output "system_assigned_mi_principal_id": │ 25: value = jsondecode(data.azapi_resource.this.output).identity.principalId │ ├──────────────── │ │ data.azapi_resource.this.output is "{\"id\":\"/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/rg-g6lz/providers/Microsoft.Cache/Redis/redis-xxxx\",\"location\":\"Sweden Central\",\"name\":\"redis-xxxx\",\"properties\":{\"accessKeys\":null,\"enableNonSslPort\":false,\"hostName\":\"redis-g6lz.redis.cache.windows.net\",\"instances\":[{\"isMaster\":true,\"isPrimary\":true,\"sslPort\":15000}],\"linkedServers\":[],\"minimumTlsVersion\":\"1.2\",\"port\":6379,\"provisioningState\":\"Succeeded\",\"publicNetworkAccess\":\"Enabled\",\"redisConfiguration\":{\"maxclients\":\"256\",\"maxfragmentationmemory-reserved\":\"30\",\"maxmemory-delta\":\"30\",\"maxmemory-policy\":\"volatile-lru\",\"maxmemory-reserved\":\"30\",\"preferred-data-persistence-auth-method\":\"SAS\"},\"redisVersion\":\"6.0\",\"sku\":{\"capacity\":0,\"family\":\"C\",\"name\":\"Basic\"},\"sslPort\":6380,\"updateChannel\":\"Stable\"},\"tags\":{\"myTag\":\"myValue\"},\"type\":\"Microsoft.Cache/Redis\"}" │ │ This object does not have an attribute named "identity". ╵
I guess
output.tf
should not expect identity to be configured as it's optional.