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.
-
Enter a name for your service.
importantYou cannot change the name after you create the service.
You can fork the service with a new name instead.
-
Optional: Add tags.
-
Select the cloud provider, region, and plan.
noteAvailable plans and pricing for the same service can vary between cloud providers and regions.
-
Optional: Add disk storage.
-
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 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.tf
and add the following:Loading...
-
Create a file named
service.tf
and add the following:Loading...
-
Create a file named
variables.tf
and add the following:Loading...
-
Create the
terraform.tfvars
file and add the values for your token and project name.
To apply your Terraform configuration:
-
Initialize Terraform by running:
terraform init
The 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
: