How Can I Avoid Delays or Timeouts While Creating Destinations Using Terraform?
Question
What are the best practices for avoiding delays or run_setup_tests
timeouts while creating destinations using Terraform?
Environment
API tools: Fivetran provider for Terraform
Answer
To avoid delays or timeouts while creating destinations using Terraform, do the following:
- In your
fivetran_destination
resource, setrun_setup_tests = false
to skip tests during creation. - Configure Terraform scripts with appropriate timeout values and retry mechanisms to handle network issues or temporary timeouts.
- Ensure you're using the latest versions of the Terraform Command Line Interface (CLI) and Fivetran provider. Newer releases address many resource creation issues.
- Set up logging and monitoring tools to capture API responses and errors.
- Create the destination, then run setup tests using either of the following methods:
REST API: Use the Run Destination Setup Tests endpoint.
Fivetran dashboard:
i. Go to your destination page.
ii. At the top right, click Actions, and then select Edit connection details.
iii. Click Save & Test.