Skip to main content

Create an Aiven for Apache Kafka® service

You can create an Aiven for Apache Kafka® service using the Aiven Console, CLI, or Terraform. During creation, you can enable diskless topics for Bring Your Own Cloud (BYOC) deployments. If you do not enable diskless topics, the service stores topic data on local disks by default.

Decide whether to enable diskless topics

Choose the configuration that fits your workload:

  • Standard Kafka service: Uses local disk storage for lower latency and all-region availability.
  • Kafka service with diskless topics: Stores data in cloud object storage for cost-optimized scaling in Bring Your Own Cloud (BYOC) environments.

Diskless topics are currently supported only for BYOC deployments on AWS and Google Cloud.

note

You cannot enable diskless topics on an existing Kafka service that was created with local storage only. To use diskless topics, create a Kafka service with diskless support enabled. Once enabled, you can create both diskless and classic topics within that service.

For details on the differences between topic types, see Classic vs. diskless topics.

Prerequisites

Make sure you have the following:

  • Access to the Aiven Console
  • An Aiven project to create the service in

Additional requirements for diskless topics

To create a Kafka service with diskless topics, make sure that:

  • You have a BYOC environment set up in your cloud account on AWS or Google Cloud
  • Diskless topics are enabled for your organization by Aiven. If the option does not appear in the Aiven Console, contact Aiven support

Create a Kafka service

Create a Kafka service that stores topic data on local disks by default.

  1. In your project, click Services.

  2. Click Create service.

  3. Select Aiven for Apache Kafka®.

  4. Under Optimize cost, keep diskless topics turned off to create a standard Kafka service.

    tip

    To create a Kafka service with diskless topics instead, see Create a Kafka service with diskless topics (BYOC).

  5. Under Add service metadata, set the following:

    • Version: Select the Kafka version. The latest supported version appears by default.
    • Service name: Enter a name for the service.
      important

      You cannot change the name after creation.

    • Tags: Optional. Add resource tags to organize your services.
  6. Select the cloud provider, region, and plan.

    note

    Available plans and pricing vary between cloud providers and regions.

  7. Optional: Add disk storage. You can also enable Tiered storage to offload older data automatically to object storage.

  8. Review the Service summary. Confirm the version, region, plan, and estimated price.

  9. Click Create service.

The service status changes to Rebuilding during creation. When it changes to Running, your Kafka service is ready.

Create a Kafka service with diskless topics (BYOC)

Use diskless topics to store Kafka data in cloud object storage instead of local disks. You can use both diskless and classic topics in the same Kafka cluster.

For instructions on setting up a BYOC environment, see Create a custom cloud (BYOC).

  1. In your project, click Services.
  2. Click Create service.
  3. Select Aiven for Apache Kafka®.
  4. Under Optimize cost, turn on Enable diskless topics.
  5. Under Add service metadata, set the following:
    • Version: Select the Kafka version. The latest supported version appears by default.
      note

      Diskless topics require Apache Kafka® version 4.0 or later.

    • Service name: Enter a name for your service.
      important

      You cannot change the name after creation.

    • Tags: Optional. Add resource tags to organize your services.
  6. Select the cloud provider, BYOC region, and plan.
  7. Under Select plan, choose one of the plans available for diskless topics.
  8. Review the Service summary on the right. Confirm the version, region, plan, and estimated price.
  9. Click Create service.

After service creation

When you create a Kafka service with diskless topics, Aiven deploys it directly in your BYOC environment using your connected cloud account. The service runs entirely within your AWS or Google Cloud account.

Aiven configures the following:

  • Access to object storage for storing Kafka topic data, either through an Aiven-managed or a customer-provided bucket, depending on your BYOC configuration.
  • A PostgreSQL-based coordinator managed as a service integration with Kafka. This coordinator maintains message ordering and metadata consistency for diskless topics. It is required for the current implementation of diskless topics. For details about how the coordinator is upgraded, see PostgreSQL service upgrades.

After creation, the Kafka Diskless PostgreSQL integration appears on the Integrations page in the Aiven Console. This integration is managed by Aiven and cannot be modified or deleted.

To learn more about how diskless topics work, see Diskless topics overview.

Related pages