Dbt Core Setup Guide
Prerequisites
- A connected data warehouse on Matia
Connection Details
- Account Identifier
- Click on Create ARN Role to start the creation of the required role.
- Provide a path to an S3 bucket directory that contains two files:
catalog.jsonandmanifest.json. Example path:s3://your-bucket-name/dbt - On your DBT Core instance, run:
dbt docs generateThe files will be generated in thetarget/folder of your DBT Core project. - Apply the following S3 bucket policy on your provided bucket:
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AllowListPrefix",
"Effect": "Allow",
"Principal": {
"AWS": "<PROVIDED_ROLE_ARN>"
},
"Action": "s3:ListBucket",
"Resource": "arn:aws:s3:::<BUCKET_NAME>",
"Condition": {
"StringLike": {
"s3:prefix": [
"<PREFIX>",
"<PREFIX>/*"
]
}
}
},
{
"Sid": "AllowReadObjectsInPrefix",
"Effect": "Allow",
"Principal": {
"AWS": "<PROVIDED_ROLE_ARN>"
},
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::<BUCKET_NAME>/<PREFIX>/*"
}
]
}
- Replace
<BUCKET_NAME>with the bucket name. - Replace
<PROVIDED_ROLE_ARN>with the Role ARN we provide. - Replace
<PREFIX>with prefix to your objects. - Confirm that the provided Role ARN can access the bucket and read the
catalog.jsonandmanifest.jsonfiles.
Final Configuration
- Select the data warehouse which is defined as part of you DBT project.
- Enter a Name for the Asset.
- (Optional) Enter a Description for the Asset.
- Select the Owner of the Asset.
- (Optional) Verify that your DBT Cloud account is successfully connected by clicking on Test Connection.
- Click Connect.