Get started with Aiven for Valkey™
Begin your journey with Aiven for Valkey™, the versatile in-memory data store offering high-performance capabilities for caching, message queues, and efficient data storage solutions.
Prerequisites
- Console
- CLI
- Terraform
- Access to the Aiven Console
- Aiven CLI installed
- A personal token
Create a service
- Console
- CLI
- Terraform
-
In your project, click Services.
-
Click Create service.
-
Select Valkey.
-
Select a Service tier.
-
Select a Cloud.
noteYou cannot choose a cloud provider or a specific cloud region on the Free tier.
-
Select a Plan.
noteThe plans available can vary between cloud providers and regions for the same service.
-
In the Service details, enter a name for your service.
-
Optional: Add service tags.
-
In the Service summary, click Create service.
The status of the service is Rebuilding during its creation. When the status is Running, you can start using the service. This typically takes a couple of minutes and can vary between cloud providers and regions.
-
Determine the service specifications, including plan, cloud provider, region, and project name.
-
Run the following command to create a Valkey service named
demo-valkey:avn service create demo-valkey \
--service-type valkey \
--cloud CLOUD_AND_REGION \
--plan PLAN \
--project PROJECT_NAMEParameters:
avn service create demo-valkey: Command to create new Aiven service nameddemo-valkey.--service-type valkey: Specifies the service type as Aiven for Valkey.--cloud CLOUD_AND_REGION: Specifies the cloud provider and region for deployment.--plan PLAN: Specifies the service plan or tier.--project PROJECT_NAME: Specifies the project where the service will be created.
To see:
- A full list of default flags, run
avn service create -h - Type-specific options, run
avn service types -v
The following example files are also available in the Aiven Terraform Provider repository on GitHub.
-
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.
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
Connect to Aiven for Valkey
Learn how to connect to Aiven for Valkey using different programming
languages or through valkey-cli: