Open riskpoint-per opened 5 months ago
This would be a nice feature. Until then, is using the azapi_update_resource to add the mountOption like below a potential workaround?
resource "azapi_update_resource" "update_resource" {
name = "my_containerapp_resource"
parent_id = data.azurerm_resource_group.rg.id
type = "Microsoft.App/containerApps@2024-03-01"
body = jsonencode({
properties = {
template = {
volumes = [
{
mountOptions = "dir_mode=0777,file_mode=0777"
}
]
}
}
})
}
This would be a nice feature. Until then, is using the azapi_update_resource to add the mountOption like below a potential workaround?
resource "azapi_update_resource" "update_resource" { name = "my_containerapp_resource" parent_id = data.azurerm_resource_group.rg.id type = "Microsoft.App/containerApps@2024-03-01" body = jsonencode({ properties = { template = { volumes = [ { mountOptions = "dir_mode=0777,file_mode=0777" } ] } } }) }
Don't forget the revision suffix in the template otherwise the update will not work. But unfortunatly it trigger tow revision instead one :(. It works indeed but we really need the fix
any update on this ? we want to go live production, this is necessary for securing our landing zone
Is there an existing issue for this?
Community Note
Description
When adding a volume to the container, there should be a comma separated list of mount options, like in the image below.
New or Affected Resource(s)/Data Source(s)
azurerm_container_app
Potential Terraform Configuration
References
No response