deploymenttheory / terraform-provider-jamfpro

Jamf Pro Terraform Provider/Plugin written with the TF Provider SDK v2. Written in go
Mozilla Public License 2.0
26 stars 9 forks source link

Added support for sticky sessions when running TF plan and applies #164

Closed ShocOne closed 4 months ago

ShocOne commented 4 months ago

Updated resource Create timeouts to 70seconds

Added support to the provider for a cookiejar, enabled via a new enable_cookie_jar setting. This enables sticky sessions. Which when enabled, allows resources to be deployed faster due to a reduced propagation wait time of 10 seconds, however this WILL lead to increased load on a single jamf pro web application (clustered or otherwise) as it handles all Terraform CRUD operations and negates any load balancing. Consequently, deploying resources enmass (e.g creating + 10 resources at a time) can cause unpredictable resource deployment / stating errors. especially on more complex resources such as macOS config profiles. If disabled, resources adhere to Jamf Cloud's default resource propagation behaviour, incorporating a 60+1-second propagation delay before attempting to state.

Multi resource function refactoring to standardise on latest function pattern design