palantir / terraform-provider-tenablesc

Terraform provider for managing Tenable.SC configuration
Other
7 stars 4 forks source link

Cannot create scan: Please modify Inactivity Timeout. It cannot be more than Max Scan Duration #148

Closed pierre-carles-shift closed 6 months ago

pierre-carles-shift commented 9 months ago

What happened?

It looks like creating a scan is broken, it fails with the error:

│ Error: failed to create scan: Please modify Inactivity Timeout. It cannot be more than Max Scan Duration.
│ The attribute 'inactivityTimeout' contains the value '43200' which should be an integer from 3600 to 3600.

Looking at the API documentation it looks like these are the default values for MaxScanDuration and InactivityTimeout: https://docs.tenable.com/security-center/api/Scan.htm Inactivity timeout is not configurable through Terraform, it is not even in the API go package: https://github.com/palantir/tenablesc-client/blob/develop/tenablesc/scan.go#L10

It looks like some changes have been made to the API that broke the Terraform provider

What did you want to happen?

Be able to create a scan

arminaaki commented 6 months ago

Thank you for reporting, the issue is resolved in the current release. https://github.com/palantir/terraform-provider-tenablesc/pull/170