Skip to content

Latest commit

 

History

History
50 lines (37 loc) · 2.34 KB

File metadata and controls

50 lines (37 loc) · 2.34 KB
title Aiven Provider for Terraform

import TerraformApply from "@site/static/includes/terraform-apply-changes.md"; import TerraformSample from '@site/src/components/CodeSamples/TerraformSample';

Use the Aiven Provider for Terraform to provision and manage your Aiven infrastructure.

:::tip You can also use an AI assistant connected to Aiven MCP to create, update, and view details for Aiven services from clients such as Cursor and Claude Code. :::

Get started

The Aiven Platform uses organizations, organizational units, and projects to organize services. This example shows you how to use the Aiven Provider for Terraform to create an organization with two organizational units, and add projects to those units. The following example file is also available in the Aiven Terraform Provider repository on GitHub.

  1. Sign up for Aiven.

  2. Download and install Terraform.

  3. Create a token.

  4. Create a file named main.tf and add the following:

  5. Create a file named variables.tf and add the following:

  6. Create the terraform.tfvars file and assign values to the variables for the token and the project names.

Next steps