Getting started with Vespa Cloud Enclave in AWS

Vespa Cloud Enclave builds on top of some tooling that it is necessary to become familiar with before getting started. Terraform is especially important, and understanding the basics is necessary. Going through a tutorial for AWS will help.

Getting started

Setting up Enclave in your account requires:

  1. Registration of the AWS account in Vespa Cloud
  2. Running a Terraform configuration to provision necessary AWS resources in the account
  3. Deployment of a Vespa application.

1. Onboarding

Contact support@vespa.ai stating which tenant should be on-boarded to use Vespa Cloud Enclave. Also include the AWS account ID to associate with the tenant.

Note: We strongly recommend dedicated accounts to use for your Vespa Cloud Enclaves. Resources in these accounts will be fully managed by Vespa Cloud.

2. Configure AWS Account

The same AWS account used in step one must be prepared for deploying Vespa applications. Use Terraform to set up the necessary resources using the modules published by the Vespa team.

Modify the multi-region Terraform files for your deployment.

If you are unfamiliar with Terraform: It is a tool to manage resources and their configuration in various cloud providers, like AWS and GCP. Terraform has published an AWS tutorial, and we strongly encourage Enclave users to read and follow the Terraform recommendations for CI/CD.

3. Deploy a Vespa application

By default, all applications are deployed on resources in Vespa Cloud accounts. To deploy in your Enclave account, update deployment.xml to reference the account used in step 1:

<deployment version="1.0" cloud-account="aws:123456789012">
    <dev />
</deployment>

Useful resources are getting started and migrating to Vespa Cloud - put deployment.xml next to services.xml.

Production deployments

After a successful deployment to the dev environment, iterate on the configuration to implement your application on Vespa. The dev environment is ideal for this, with rapid deployment cycles.

For production serving, deploy to the prod environment - follow the steps in production deployment.