Path: blob/main/docs/source/polars-cloud/integrations/dagster.md
8393 views
Dagster
Configure Polars Cloud authentication securely within Dagster pipelines using resource based secret management. This section details how to integrate Polars Cloud service account credentials with Dagster's resource pattern.
Dagster implements secret management through Resources), which provide dependency injection for external services. To configure Polars Cloud authentication, define credentials through one of these standard approaches:
Secret manager (recommended): pull the secret from a metastore (see official docs of your secret manager; here is AWS' as an example).
Environment variables: define the values as environment variables in your Dagster environment (containers or else), and pick them up from your code or Dagster configuration (via the
dagster.yamlorworkspace.yaml).
Some code snippets for the solutions described above:
Below a few lines of pseudo-code to define a Dagster flow: