Skip to content

Commit

Permalink
Update dos and terraform
Browse files Browse the repository at this point in the history
  • Loading branch information
drewkim committed Oct 16, 2024
1 parent 1de88c5 commit 51c4efc
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
6 changes: 3 additions & 3 deletions examples/deployments/aws-terraform/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ Check that chroma is running (It should take up several minutes for the instance

```bash
export instance_public_ip=$(terraform output instance_public_ip | sed 's/"//g')
curl -v http://$instance_public_ip:8000/api/v1/heartbeat
curl -v http://$instance_public_ip:8000/api/v2/heartbeat
```

#### 4.1 Checking Auth
Expand All @@ -112,7 +112,7 @@ export CHROMA_AUTH=$(terraform output chroma_auth_token | sed 's/"//g')
Using the credentials:

```bash
curl -v http://$instance_public_ip:8000/api/v1/collections -H "Authorization: Bearer ${CHROMA_AUTH}"
curl -v http://$instance_public_ip:8000/api/v2/collections -H "Authorization: Bearer ${CHROMA_AUTH}"
```

##### Basic
Expand All @@ -137,7 +137,7 @@ export CHROMA_AUTH=$(terraform output chroma_auth_basic | sed 's/"//g')
Using the credentials:

```bash
curl -v http://$instance_public_ip:8000/api/v1/collections -u "${CHROMA_AUTH}"
curl -v http://$instance_public_ip:8000/api/v2/collections -u "${CHROMA_AUTH}"
```

> Note: Without `-u` you should be getting 401 Unauthorized response
Expand Down
6 changes: 3 additions & 3 deletions examples/deployments/do-terraform/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ Check that chroma is running (It should take up several minutes for the instance

```bash
export instance_public_ip=$(terraform output instance_public_ip | sed 's/"//g')
curl -v http://$instance_public_ip:8000/api/v1/heartbeat
curl -v http://$instance_public_ip:8000/api/v2/heartbeat
```

#### 4.1 Checking Auth
Expand Down Expand Up @@ -103,7 +103,7 @@ export CHROMA_AUTH=$(terraform output chroma_auth_token | sed 's/"//g')
Using the credentials:

```bash
curl -v http://$instance_public_ip:8000/api/v1/collections -H "Authorization: Bearer ${CHROMA_AUTH}"
curl -v http://$instance_public_ip:8000/api/v2/collections -H "Authorization: Bearer ${CHROMA_AUTH}"
```

##### Basic
Expand All @@ -129,7 +129,7 @@ export CHROMA_AUTH=$(terraform output chroma_auth_basic | sed 's/"//g')
Using the credentials:

```bash
curl -v http://$instance_public_ip:8000/api/v1/collections -u "${CHROMA_AUTH}"
curl -v http://$instance_public_ip:8000/api/v2/collections -u "${CHROMA_AUTH}"
```

> Note: Without `-u` you should be getting 401 Unauthorized response
Expand Down
6 changes: 3 additions & 3 deletions examples/deployments/google-cloud-compute/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Check that chroma is running:

```bash
export instance_public_ip=$(terraform output instance_public_ip | sed 's/"//g')
curl -v http://$instance_public_ip:8000/api/v1/heartbeat
curl -v http://$instance_public_ip:8000/api/v2/heartbeat
```

#### 4.1 Checking Auth
Expand Down Expand Up @@ -91,7 +91,7 @@ export CHROMA_AUTH=$(terraform output chroma_auth_token | sed 's/"//g')
Using the credentials:

```bash
curl -v http://$instance_public_ip:8000/api/v1/collections -H "Authorization: Bearer ${CHROMA_AUTH}"
curl -v http://$instance_public_ip:8000/api/v2/collections -H "Authorization: Bearer ${CHROMA_AUTH}"
```

##### Basic
Expand All @@ -117,7 +117,7 @@ export CHROMA_AUTH=$(terraform output chroma_auth_basic | sed 's/"//g')
Using the credentials:

```bash
curl -v http://$instance_public_ip:8000/api/v1/collections -u "${CHROMA_AUTH}"
curl -v http://$instance_public_ip:8000/api/v2/collections -u "${CHROMA_AUTH}"
```

> Note: Without `-u` you should be getting 401 Unauthorized response
Expand Down
6 changes: 3 additions & 3 deletions examples/deployments/render-terraform/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Check that chroma is running:

```bash
export instance_public_ip=$(terraform output instance_url | sed 's/"//g')
curl -v $instance_public_ip/api/v1/heartbeat
curl -v $instance_public_ip/api/v2/heartbeat
```

#### 4.1 Checking Auth
Expand Down Expand Up @@ -76,7 +76,7 @@ export CHROMA_AUTH=$(terraform output chroma_auth_token | sed 's/"//g')
Using the credentials:

```bash
curl -v $instance_public_ip/api/v1/collections -H "Authorization: Bearer ${CHROMA_AUTH}"
curl -v $instance_public_ip/api/v2/collections -H "Authorization: Bearer ${CHROMA_AUTH}"
```

##### Basic
Expand All @@ -102,7 +102,7 @@ export CHROMA_AUTH=$(terraform output chroma_auth_basic | sed 's/"//g')
Using the credentials:

```bash
curl -v https://$instance_public_ip:8000/api/v1/collections -u "${CHROMA_AUTH}"
curl -v https://$instance_public_ip:8000/api/v2/collections -u "${CHROMA_AUTH}"
```

> Note: Without `-u` you should be getting 401 Unauthorized response
Expand Down
2 changes: 1 addition & 1 deletion examples/deployments/render-terraform/chroma.tf
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ resource "render_service" "chroma" {
env = "image"
plan = var.render_plan
region = var.region
health_check_path = "/api/v1/heartbeat"
health_check_path = "/api/v2/heartbeat"
disk = {
name = var.chroma_data_volume_device_name
mount_path = var.chroma_data_volume_mount_path
Expand Down

0 comments on commit 51c4efc

Please sign in to comment.