CheckPointSW / terraform-provider-checkpoint

Terraform provider for Check Point
https://www.terraform.io/docs/providers/checkpoint/
Mozilla Public License 2.0
28 stars 40 forks source link

terraform import service_tcp not setting value for aggressive_aging #65

Closed Sreerag74031 closed 3 years ago

Sreerag74031 commented 3 years ago

While importing checkpoint_management_service_tcp objects using terraform aggressive_aging is not getting imported. we understand aggressive_aging is set to null if the values are default: { "enable": True, "timeout": 600, "use_default_timeout": True, "default_timeout": 0 }

However for one tcp_service api 'show-services-tcp' returned non default value for aggressive_aging { "enable": true, "timeout": 60, "use-default-timeout": false, "default-timeout": 60 } but the terraform state show null for aggressive_aging

chkp-royl commented 3 years ago

Hi @Sreerag74031, If you want default aggresive_aging to be imported into terraform state you can configure it block in the resource configuration file, for example: aggressive_aging = { enable = true timeout = 600 use_default_timeout = true default_timeout = 0 }

Regards, Roy