Skip to content

Do not require application package or application_root to initialize VespaCloud #1113

Description

@thomasht86

Currently:

  # 1. Initialize VespaCloud with an application package and existing API key for control plane access.
  vespa_cloud = VespaCloud(
      tenant="my-tenant",
      application="my-application",
      application_package=app_package,
      key_location="/path/to/private-key.pem",
  )

  # 2. Initialize VespaCloud from disk folder by interactive control plane auth.
  vespa_cloud = VespaCloud(
      tenant="my-tenant",
      application="my-application",
      application_root="/path/to/application",
  )

  # 3. Initialize VespaCloud with an application package and token-based data plane access.
  vespa_cloud = VespaCloud(
      tenant="my-tenant",
      application="my-application",
      application_package=app_package,
      auth_client_token_id="my-token-id", # Must be added in Vespa Cloud Console
  )

But there are cases where one just needs a control plane connection to an existing application, and only use delete(), get_schema or other methods that should not require providing the package.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions