Terraform example files that can be used with the Aiven Provider for Terraform to manage your Aiven infrastructure.
-
Sign up for Aiven.
-
Create a personal token. You can also create an application user and use its token for accessing the Aiven Provider.
-
Install Terraform. To confirm that you have Terraform v0.13.0 or higher installed, run:
$ terraform --version
-
Clone this repository.
-
Add your Aiven token to the
terraform.tfvars
file for the example. -
In the directory for the example, initialize Terraform by running:
$ terraform init
-
To create an execution plan and preview the changes that will be made, run:
$ terraform plan
-
To deploy your changes, run:
$ terraform apply --auto-approve
-
To see your changes, log in to the Aiven Console.
-
To remove all infrastructure changes, run:
$ terraform destroy
Start with the get started example to create your first organization, project, and user group in Aiven.
terraform-example-projects is licensed under the Apache license, version 2.0. Full license text is available in the LICENSE file.
Please note that the project explicitly does not require a CLA (Contributor License Agreement) from its contributors.
Contributions and bug reports are very welcome. Post them as GitHub issues and pull requests at https://github.com/aiven/terraform-example-projects. To report any possible vulnerabilities or other serious issues please see our security policy.