It’s Official: Fivetran and HVR Are Now One. Learn more.

HomeBlog
Introducing the Fivetran Terraform Provider
Fivetran
HomeBlog
Introducing the Fivetran Terraform Provider

Introducing the Fivetran Terraform Provider

Integrate Fivetran into your infrastructure-as-code development.

By Nick Acosta, Felipe Neuwald, Angel Hernandez, September 15, 2021

Fivetran recently announced our first SDK to leverage the Fivetran API in Go, which has been used to create the Fivetran Terraform Provider. Fully verified by Terraform and included in the Terraform registry, the Provider allows you to provision and manage Fivetran connectors, destinations and users in Terraform.

Terraform and Infrastructure as Code

Infrastructure as code enables organizations to programmatically create, delete and alter the state of cloud services. Terraform is one of the leading open-source projects for writing and running infrastructure as code. Here at Fivetran, we use Terraform throughout our infrastructure management processes, including the construction of VPN tunnels to connect to our customers’ private networks. Using Terraform instead of manual processes has saved us many hours of work.

Terraform allows for the control of specific resource types through providers. If you are already utilizing Terraform to manage your modern data stack, Fivetran can now be included through our new Terraform Provider.

The Fivetran Terraform Provider

A typical Terraform workflow involves a number of different commands: init, refresh, plan, apply and destroy. Each of these can be used with the Fivetran Terraform Provider to manage Fivetran accounts and services:

  • terraform init - This command informs Terraform of the current working directory it should utilize and the providers and additional configurations that it will need to do so. This step will ensure that the Fivetran Terraform Provider is added and available.

  • terraform refresh - The refresh command will list the changes that Terraform has made to an infrastructure. This can be used with the Fivetran Terraform Provider to see what has been added or modified to Fivetran by Terraform.

  • terraform plan - This will display the changes Terraform will make to Fivetran when terraform apply is run.

  • terraform apply - Apply executes Terraform’s plan to update or add users, groups, connections and destinations to Fivetran. terraform destroy will revert the changes made by terraform apply.

Trying It Out

The Fivetran Terraform Provider is in its alpha development phase and can be found on the Terraform Registry.

Start analyzing your data in minutes, not months

Launch any Fivetran connector instantly.