Description |
This article describes the workaround when deleting addresses included in address groups. |
Scope |
When trying to delete address objects included in address group object, terraform tries to delete the address object before removing it from address group object which will fail with 'Internal Server Error'.
Error: Error deleting FirewallAddress resource: Internal Server Error - Internal error when processing the request (500) |
Solution |
Set the create_before_destroy flag to true under lifecycle in the resource block.
resource "fortios_firewall_address" "tf_addresses" {
Run terraform apply to add the flag to the state then try to delete the resource.
Related document: |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2024 Fortinet, Inc. All Rights Reserved.