Open mabnz opened 2 years ago
Hi @mabnz,
Thank you for raising this issue. We are in contact with the related team to find a solution, a bug ticket has been created internally to track this issue, will get back to you once it's resolved. By the way, you could use resource fortios_system_autoscript
as alternatives:
https://registry.terraform.io/providers/fortinetdev/fortios/latest/docs/resources/fortios_system_autoscript
For instance:
resource "fortios_system_autoscript" "auto2" {
interval = 1
name = "myscript12"
output_size = 10
repeat = 1
script = <<EOF
config firewall internet-service-custom
edit "Nonsense-Card"
set reputation 4
set comment "comment"
config entry
edit 1
set protocol 17
config port-range
edit 1
set start-port 433
set end-port 433
next
end
set dst "host_Mike"
next
end
next
end
EOF
start = "auto"
}
Please let me know if you have any questions.
Thanks, Xing
Hi,
Using the Terraform configuration below, a HTTP 500 is returned from FortiOS (7.0.4).
Error below.
│ Error: Error creating FirewallInternetServiceCustom resource: Internal Server Error - Internal error when processing the request (500) │ │ with fortios_firewall_internetservicecustom.unified-isc, │ on fortigate2.tf line 1, in resource "fortios_firewall_internetservicecustom" "unified-isc": │ 1: resource "fortios_firewall_internetservicecustom" "unified-isc" {
FortiOS debug: