Skip to content

Commit

Permalink
Updating Login URL Examples
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewshaver committed Dec 20, 2023
1 parent f52494a commit 8e52318
Show file tree
Hide file tree
Showing 15 changed files with 22 additions and 22 deletions.
4 changes: 2 additions & 2 deletions website/docs/docs/cloud/configure-cloud-cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Once you install the dbt Cloud CLI, you need to configure it to connect to a dbt

2. Download your credentials from dbt Cloud by clicking on the **Try the dbt Cloud CLI** banner on the dbt Cloud homepage. Alternatively, if you're in dbt Cloud, you can download the credentials from the links provided based on your region:

- North America: https://cloud.getdbt.com/cloud-cli
- North America: https://YOUR_ACCESS_URL/cloud-cli
- EMEA: https://emea.dbt.com/cloud-cli
- APAC: https://au.dbt.com/cloud-cli
- North American Cell 1: `https:/ACCOUNT_PREFIX.us1.dbt.com/cloud-cli`
Expand Down Expand Up @@ -74,7 +74,7 @@ Once you install the dbt Cloud CLI, you need to configure it to connect to a dbt
project-id: PROJECT_ID
```

- To find your project ID, select **Develop** in the dbt Cloud navigation menu. You can use the URL to find the project ID. For example, in `https://cloud.getdbt.com/develop/26228/projects/123456`, the project ID is `123456`.
- To find your project ID, select **Develop** in the dbt Cloud navigation menu. You can use the URL to find the project ID. For example, in `https://YOUR_ACCESS_URL/develop/26228/projects/123456`, the project ID is `123456`.

6. You can now [use the dbt Cloud CLI](#use-the-dbt-cloud-cli) and run [dbt commands](/reference/dbt-commands) like `dbt compile`. With your repo recloned, you can add, edit, and sync files with your repo.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ To improve your experience using dbt Cloud, we suggest that you turn off ad bloc

## Prerequisites

- A [dbt Cloud account](https://cloud.getdbt.com/) and [Developer seat license](/docs/cloud/manage-access/seats-and-users)
- A [dbt Cloud account]() and [Developer seat license](/docs/cloud/manage-access/seats-and-users)
- A git repository set up and git provider must have `write` access enabled. See [Connecting your GitHub Account](/docs/cloud/git/connect-github) or [Importing a project by git URL](/docs/cloud/git/import-a-project-by-git-url) for detailed setup instructions
- A dbt project connected to a [data platform](/docs/cloud/connect-data-platform/about-connections)
- A [development environment and development credentials](#access-the-cloud-ide) set up
Expand Down
2 changes: 1 addition & 1 deletion website/docs/docs/deploy/deployment-tools.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ To use the dbt API to trigger a job in dbt Cloud through ADF:
2. You'll want to create a pipeline in ADF to trigger a dbt Cloud job.
3. Securely fetch the dbt Cloud service token from a key vault in ADF, using a web call as the first step in the pipeline.
4. Set the parameters in the pipeline, including the dbt Cloud account ID and job ID, as well as the name of the key vault and secret that contains the service token.
* You can find the dbt Cloud job and account id in the URL, for example, if your URL is `https://cloud.getdbt.com/deploy/88888/projects/678910/jobs/123456`, the account ID is 88888 and the job ID is 123456
* You can find the dbt Cloud job and account id in the URL, for example, if your URL is `https://YOUR_ACCESS_URL/deploy/88888/projects/678910/jobs/123456`, the account ID is 88888 and the job ID is 123456
5. Trigger the pipeline in ADF to start the dbt Cloud job and monitor the status of the dbt Cloud job in ADF.
6. In dbt Cloud, you can check the status of the job and how it was triggered in dbt Cloud.

Expand Down
6 changes: 3 additions & 3 deletions website/docs/faqs/API/rotate-token.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ curl --location --request POST 'https://YOUR_ACCESS_URL/api/v2/users/YOUR_USER_I

:::info Example

If `YOUR_USER_ID` = `123`, `YOUR_CURRENT_TOKEN` = `abcf9g`, and your `ACCESS_URL` = `cloud.getdbt.com`, then your curl request will be:
If `YOUR_USER_ID` = `123`, `YOUR_CURRENT_TOKEN` = `abcf9g`, then your curl request will be:

```
curl --location --request POST 'https://cloud.getdbt.com/api/v2/users/123/apikey/' \
curl --location --request POST 'https://YOUR_ACCESS_URL/api/v2/users/123/apikey/' \
--header 'Authorization: Token abcf9g'
```
:::
Expand All @@ -53,7 +53,7 @@ curl --location --request POST 'https://cloud.getdbt.com/api/v2/users/123/apikey

### dbt Cloud deployments

If your [dbt Cloud deployment](/docs/cloud/about-cloud/regions-ip-addresses) uses a different access URL, replace `cloud.getdbt.com` with the URL of your instance.
If your [dbt Cloud deployment](/docs/cloud/about-cloud/regions-ip-addresses) uses a different access URL, replace `YOUR_ACCESS_URL` with the URL of your instance.

For example, if your deployment is Virtual Private dbt:

Expand Down
2 changes: 1 addition & 1 deletion website/docs/faqs/Accounts/find-user-id.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ To find your user ID in dbt Cloud, read the following steps:
3. In the address bar, the number after `/users` is your user ID.
4. Copy that number or save it somewhere safe. <br />

For example, if the URL is `https://cloud.getdbt.com/settings/accounts/12345/users/67891` &mdash; the user ID is `67891`<br /><br />
For example, if the URL is `https://YOUR_ACCESS_URL/settings/accounts/12345/users/67891` &mdash; the user ID is `67891`<br /><br />
8 changes: 4 additions & 4 deletions website/docs/guides/airflow-and-dbt-cloud.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ cd airflow-dbt-cloud
- Once you hit `save` on the job, make sure you copy the URL and save it for referencing later. The url will look similar to this:

```html
https://cloud.getdbt.com/#/accounts/{account_id}/projects/{project_id}/jobs/{job_id}/
https://YOUR_ACCESS_URL/#/accounts/{account_id}/projects/{project_id}/jobs/{job_id}/
```

<WistiaVideo id="qiife5rzlp" paddingTweak="62.25%" />
Expand All @@ -132,7 +132,7 @@ Now you have all the working pieces to get up and running with Airflow + dbt Clo

![Connection type](/img/guides/orchestration/airflow-and-dbt-cloud/connection-type.png)

3. Add in your connection details and your default dbt Cloud account id. This is found in your dbt Cloud URL after the accounts route section (`/accounts/{YOUR_ACCOUNT_ID}`), for example the account with id 16173 would see this in their URL: `https://cloud.getdbt.com/#/accounts/16173/projects/36467/jobs/65767/`
3. Add in your connection details and your default dbt Cloud account id. This is found in your dbt Cloud URL after the accounts route section (`/accounts/{YOUR_ACCOUNT_ID}`), for example the account with id 16173 would see this in their URL: `https://YOUR_ACCESS_URL/#/accounts/16173/projects/36467/jobs/65767/`

![Connection type](/img/guides/orchestration/airflow-and-dbt-cloud/connection-type-configured.png)

Expand All @@ -143,15 +143,15 @@ Now you have all the working pieces to get up and running with Airflow + dbt Clo
Both IDs are included inside of the dbt Cloud job URL as shown in the following snippets:

```python
# For the dbt Cloud Job URL https://cloud.getdbt.com/#/accounts/16173/projects/36467/jobs/65767/
# For the dbt Cloud Job URL https://YOUR_ACCESS_URL/#/accounts/16173/projects/36467/jobs/65767/
# The account_id is 16173

# Update line 28
default_args={"dbt_cloud_conn_id": "dbt_cloud", "account_id": 16173},
```

```python
# For the dbt Cloud Job URL https://cloud.getdbt.com/#/accounts/16173/projects/36467/jobs/65767/
# For the dbt Cloud Job URL https://YOUR_ACCESS_URL/#/accounts/16173/projects/36467/jobs/65767/
# The job_id is 65767

# Update line 39
Expand Down
2 changes: 1 addition & 1 deletion website/docs/guides/bigquery-qs.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ In order to let dbt connect to your warehouse, you'll need to generate a keyfile
3. Create a service account key for your new project from the [Service accounts page](https://console.cloud.google.com/iam-admin/serviceaccounts?walkthrough_id=iam--create-service-account-keys&start_index=1#step_index=1). For more information, refer to [Create a service account key](https://cloud.google.com/iam/docs/creating-managing-service-account-keys#creating) in the Google Cloud docs. When downloading the JSON file, make sure to use a filename you can easily remember. For example, `dbt-user-creds.json`. For security reasons, dbt Labs recommends that you protect this JSON file like you would your identity credentials; for example, don't check the JSON file into your version control software.

## Connect dbt Cloud to BigQuery​
1. Create a new project in [dbt Cloud](https://cloud.getdbt.com/). From **Account settings** (using the gear menu in the top right corner), click **+ New Project**.
1. Create a new project in [dbt Cloud](/docs/cloud/about-cloud/regions-ip-addresses). From **Account settings** (using the gear menu in the top right corner), click **+ New Project**.
2. Enter a project name and click **Continue**.
3. For the warehouse, click **BigQuery** then **Next** to set up your connection.
4. Click **Upload a Service Account JSON File** in settings.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ if __name__ == '__main__':
4. Replace **`<YOUR_BASE_URL>`** and **`<YOUR_ACCOUNT_ID>`** with the correct values of your environment and [Access URL](/docs/cloud/about-cloud/regions-ip-addresses) for your region and plan.

:::tip
To find these values, navigate to **dbt Cloud**, select **Deploy -> Jobs**. Select the Job you want to run and copy the URL. For example: `https://cloud.getdbt.com/deploy/000000/projects/111111/jobs/222222`
To find these values, navigate to **dbt Cloud**, select **Deploy -> Jobs**. Select the Job you want to run and copy the URL. For example: `https://YOUR_ACCESS_URL/deploy/000000/projects/111111/jobs/222222`
and therefore valid code would be:

# Your URL is structured https://<YOUR_BASE_URL>/deploy/<YOUR_ACCOUNT_ID>/projects/<YOUR_PROJECT_ID>/jobs/<YOUR_JOB_ID>
Expand Down
2 changes: 1 addition & 1 deletion website/docs/guides/redshift-qs.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ Now we are going to load our sample data into the S3 bucket that our Cloudformat
select * from stripe.payment;
```
## Connect dbt Cloud to Redshift
1. Create a new project in [dbt Cloud](https://cloud.getdbt.com/). From **Account settings** (using the gear menu in the top right corner), click **+ New Project**.
1. Create a new project in [dbt Cloud](/docs/cloud/about-cloud/regions-ip-addresses). From **Account settings** (using the gear menu in the top right corner), click **+ New Project**.
2. Enter a project name and click **Continue**.
3. For the warehouse, click **Redshift** then **Next** to set up your connection.
4. Enter your Redshift settings. Reference your credentials you saved from the CloudFormation template.
Expand Down
2 changes: 1 addition & 1 deletion website/docs/guides/starburst-galaxy-qs.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ To query the Jaffle Shop data with Starburst Galaxy, you need to create tables u
If this role is not listed for you, choose the role you selected in [Connect Starburst Galaxy to the Amazon S3 bucket](#connect-to-s3-bucket) when you added location privilege for your S3 bucket.
3. Click **Clusters** on the left sidebar.
4. Find your cluster in the **View clusters** table and click **Connection info**. Choose **dbt** from the **Select client** dropdown. Keep the **Connection information** modal open. You will use details from that modal in dbt Cloud.
5. In another browser tab, log in to [dbt Cloud](https://cloud.getdbt.com/).
5. In another browser tab, log in to [dbt Cloud](/docs/cloud/about-cloud/regions-ip-addresses).
6. Create a new project in dbt Cloud. From Account settings (using the gear menu in the top right corner), click **+ New Project**.
7. Enter a project name and click **Continue**.
8. Choose **Starburst** as your connection and click **Next**.
Expand Down
2 changes: 1 addition & 1 deletion website/docs/guides/zapier-ms-teams.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ run_id = hook_data['runId']
account_id = full_body['accountId']

# Fetch run info from the dbt Cloud Admin API
url = f'https://cloud.getdbt.com/api/v2/accounts/{account_id}/runs/{run_id}/?include_related=["run_steps"]'
url = f'https://YOUR_ACCESS_URL/api/v2/accounts/{account_id}/runs/{run_id}/?include_related=["run_steps"]'
headers = {'Authorization': f'Token {api_token}'}
run_data_response = requests.get(url, headers=headers)
run_data_response.raise_for_status()
Expand Down
2 changes: 1 addition & 1 deletion website/docs/guides/zapier-new-cloud-job.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ hook_data = full_body['data']
if hook_data['runStatus'] == "Success":

# Trigger a new run with the dbt Cloud Admin API
url = f'https://cloud.getdbt.com/api/v2/accounts/{full_body['accountId']}/jobs/{target_job_id}/run'
url = f'https://YOUR_ACCESS_URL/api/v2/accounts/{full_body['accountId']}/jobs/{target_job_id}/run'

body = {'cause': f"Triggered by Zapier because {hook_data['jobName']} Run #{hook_data['runId']} completed successfully"}
headers = {'Authorization': f'Token {api_token}'}
Expand Down
4 changes: 2 additions & 2 deletions website/docs/guides/zapier-slack.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ run_id = hook_data['runId']
account_id = full_body['accountId']

# Fetch run info from the dbt Cloud Admin API
url = f'https://cloud.getdbt.com/api/v2/accounts/{account_id}/runs/{run_id}/?include_related=["run_steps"]'
url = f'https://YOUR_ACCESS_URL/api/v2/accounts/{account_id}/runs/{run_id}/?include_related=["run_steps"]'
headers = {'Authorization': f'Token {api_token}'}
run_data_response = requests.get(url, headers=headers)
run_data_response.raise_for_status()
Expand Down Expand Up @@ -258,7 +258,7 @@ api_token = secret_store.get('DBT_CLOUD_SERVICE_TOKEN')
commands_to_skip_logs = ['dbt source', 'dbt docs']
run_id = input_data['run_id']
account_id = input_data['account_id']
url = f'https://cloud.getdbt.com/api/v2/accounts/{account_id}/runs/{run_id}/?include_related=["run_steps"]'
url = f'https://YOUR_ACCESS_URL/api/v2/accounts/{account_id}/runs/{run_id}/?include_related=["run_steps"]'
headers = {'Authorization': f'Token {api_token}'}

response = requests.get(url, headers=headers)
Expand Down
2 changes: 1 addition & 1 deletion website/docs/reference/dbt_project.yml.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ By default, dbt will look for `dbt_project.yml` in your current working director

By default, dbt will look for `dbt_project.yml` in your current working directory and its parents, but you can set a different directory using the `--project-dir` flag or the `DBT_PROJECT_DIR` environment variable.

Starting from dbt v1.5 and higher, you can specify your dbt Cloud project ID in the `dbt_project.yml` file using `project-id` under the `dbt-cloud` config. To find your project ID, check your dbt Cloud project URL, such as `https://cloud.getdbt.com/11/projects/123456`, where the project ID is `123456`.
Starting from dbt v1.5 and higher, you can specify your dbt Cloud project ID in the `dbt_project.yml` file using `project-id` under the `dbt-cloud` config. To find your project ID, check your dbt Cloud project URL, such as `https://YOUR_ACCESS_URL/11/projects/123456`, where the project ID is `123456`.

</VersionBlock>

Expand Down
2 changes: 1 addition & 1 deletion website/snippets/tutorial-create-new-dbt-cloud-account.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Let's start this section by creating a dbt Cloud account if you haven't already.

1. Navigate to [dbt Cloud](https://cloud.getdbt.com).
1. Navigate to [dbt Cloud](/docs/cloud/about-cloud/regions-ip-addresses).
2. If you don't have a dbt Cloud account, create a new one, and verify your account via email.
3. If you already have a dbt Cloud account, you can create a new project from your existing account:
1. Click the gear icon in the top-right, then click **Projects**.
Expand Down

0 comments on commit 8e52318

Please sign in to comment.