Run lightdash preview from inside your project
cmd + click to open the preview link from your terminal. Once you’re in Lightdash go to Explore —> Tables, then click on the model(s) you just updated to see your changes and play around with them.
Problems with credentials?When you create preview projects, Lightdash will use the same warehouse connection settings you have in your
profiles.yml file for your current dbt project. This can be a problem if you’re using a local database that your laptop can reach but your Lightdash instance cannot.Redshift with method: iam
If your dbt Redshift profile authenticates with method: iam, lightdash preview resolves an AWS identity from your local AWS credential chain and forwards the resulting access key ID, secret access key, and (if present) session token to the backend. The backend then uses them to mint short-lived Redshift credentials per query, but only for the preview project.
- If
iam_profileis set on the dbt target, the CLI resolves credentials from that profile (fromIni), matching dbt’s own precedence. This covers AWS SSO profiles. - Otherwise the CLI walks the default provider chain (
fromNodeProviderChain): environment variables, the default profile, SSO, then an instance role. - If the chain resolves nothing,
lightdash previewfails fast with an actionable error pointing ataws sso login(or configuring a profile) rather than creating a broken preview.
aws sso login and lightdash preview to refresh them.
This applies to ephemeral preview projects created from your local dbt profile. For a durable, persistent project connection to Redshift with IAM, use a role the Lightdash backend assumes (
assumeRoleArn) — see Connect Redshift.