Create a Classic Kafka service
Create a Classic Apache Kafka® service on Aiven. Classic Kafka uses predefined service sizes and stores data on local broker disks. You can enable tiered storage when the selected plan and cloud support it.
Prerequisites
- Access to the Aiven Console
- An Aiven project where you can create Kafka services
Create a Classic Kafka service on Aiven Cloud
Classic Kafka services are available on the Free and Professional service tiers. By default, data is stored on local broker disks. You can enable tiered storage when the selected plan and cloud support it.
- Console
- CLI
- Terraform
- In the Aiven Console, open the project and select Services.
- Click Create service.
- Select Apache Kafka®.
- In Service tier, select a supported tier.
- In Cluster type, select Classic Kafka.
- In Deployment mode, select Aiven cloud.
- Select a cloud provider and region.
- Select a plan.
- Optional: Adjust Additional disk storage or enable Tiered storage, if supported for the selected plan and region.
- In Service basics, enter:
- Name: Name of the service. You cannot change the service name after creation.
- Version: Select the Kafka version. The latest supported version appears by default.
- Tags: Optional. Add resource tags to organize your services.
- Review the Service summary, then click Create service.
Create a Classic Kafka service using Aiven CLI:
avn service create SERVICE_NAME \
--project PROJECT_NAME \
--service-type kafka \
--cloud CLOUD_REGION \
--plan PLAN_NAME
Parameters:
SERVICE_NAME: Name of the Kafka servicePROJECT_NAME: Project that contains the serviceCLOUD_REGION: Cloud provider and regionPLAN_NAME: Classic Kafka plan
Create a Classic Kafka service in your Aiven project using Terraform.
-
Create a file named
provider.tfand add the following:Loading... -
Create a file named
service.tfand add the following:Loading... -
Create a file named
variables.tfand add the following:Loading... -
Create the
terraform.tfvarsfile and add the values for your token and project name. -
Optional: To output connection details, create a file named
output.tfand add the following:Loading...
To apply your Terraform configuration:
-
Initialize Terraform by running:
terraform initThe output is similar to the following:
Initializing the backend...
Initializing provider plugins...
- Finding aiven/aiven versions matching ">= 4.0.0, < 5.0.0"...
- Installing aiven/aiven v4.9.2...
- Installed aiven/aiven v4.9.2
...
Terraform has been successfully initialized!
... -
To create an execution plan and preview the changes, run:
terraform plan -
To deploy your changes, run:
terraform apply --auto-approve
Create a Classic Kafka service on Bring Your Own Cloud (BYOC)
Classic Kafka services on BYOC are available on the Professional service tier. The service runs in your own cloud account while Aiven manages the Kafka infrastructure and operations.
To create services on BYOC, first set up a BYOC environment. For instructions, see Create a custom cloud (BYOC).
- Console
- CLI
- In the Aiven Console, open the project and select Services.
- Click Create service.
- Select Apache Kafka®.
- In Service tier, select a supported tier.
- In Cluster type, select Classic Kafka.
- In Deployment mode, select Bring your own cloud (BYOC).
- In the Cloud:
- Select your BYOC environment.
- Select a region.
- Select a plan.
- Optional: Adjust Additional disk storage or enable Tiered storage, if supported by the selected plan.
- In Service basics, enter:
- Name: Name of the service. You cannot change the service name after creation.
- Version: Select the Kafka version. The latest supported version appears by default.
- Tags: Optional. Add resource tags to organize your services.
- Review the Service summary, then click Create service.
Create a Classic Kafka BYOC service using Aiven CLI:
avn service create SERVICE_NAME \
--project PROJECT_NAME \
--service-type kafka \
--cloud CUSTOM_CLOUD_REGION \
--plan PLAN_NAME
Parameters:
SERVICE_NAME: Name of the Kafka servicePROJECT_NAME: Aiven project nameCUSTOM_CLOUD_REGION: BYOC region, such ascustom-aws-eu-central-1PLAN_NAME: Classic Kafka BYOC plan
Related pages