Skip to content

Commit

Permalink
Switch back to port 6875 and materialize as the user
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbyiliev committed Dec 19, 2024
1 parent 5135e91 commit 1ed1729
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/integration-self-hosted.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,19 @@ jobs:

- name: Terraform Init
run: |
docker exec provider sh -c "cd self_hosted && terraform init"
docker exec --workdir /usr/src/app/integration/self_hosted provider terraform init
- name: Terraform Apply
run: |
docker exec provider sh -c "cd self_hosted && terraform apply -auto-approve -compact-warnings"
docker exec --workdir /usr/src/app/integration/self_hosted provider terraform apply -auto-approve -compact-warnings
- name: Terraform Plan
run: |
docker exec provider sh -c "cd self_hosted && terraform plan -detailed-exitcode"
docker exec --workdir /usr/src/app/integration/self_hosted provider terraform plan -detailed-exitcode
- name: Terraform Destroy
run: |
docker exec provider sh -c "cd self_hosted && terraform destroy -auto-approve -compact-warnings"
docker exec --workdir /usr/src/app/integration/self_hosted provider terraform destroy -auto-approve -compact-warnings
- name: Docker Compose Down
run: docker compose down
4 changes: 2 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ provider "materialize" {
# Self-hosted Materialize authentication
provider "materialize" {
host = "materialized" # optionally use MZ_HOST env var
port = 6877 # optionally use MZ_PORT env var
username = "mz_system" # optionally use MZ_USER env var
port = 6875 # optionally use MZ_PORT env var
username = "materialize" # optionally use MZ_USER env var
database = "materialize" # optionally use MZ_DATABASE env var
password = "" # optionally use MZ_PASSWORD env var
sslmode = "disable" # optionally use MZ_SSLMODE env var
Expand Down
4 changes: 2 additions & 2 deletions examples/provider/provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ provider "materialize" {
# Self-hosted Materialize authentication
provider "materialize" {
host = "materialized" # optionally use MZ_HOST env var
port = 6877 # optionally use MZ_PORT env var
username = "mz_system" # optionally use MZ_USER env var
port = 6875 # optionally use MZ_PORT env var
username = "materialize" # optionally use MZ_USER env var
database = "materialize" # optionally use MZ_DATABASE env var
password = "" # optionally use MZ_PASSWORD env var
sslmode = "disable" # optionally use MZ_SSLMODE env var
Expand Down
4 changes: 2 additions & 2 deletions pkg/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,13 @@ func Provider(version string) *schema.Provider {
Type: schema.TypeInt,
Optional: true,
Description: "The Materialize SQL port. Can also come from the `MZ_PORT` environment variable.",
DefaultFunc: schema.EnvDefaultFunc("MZ_PORT", 6877),
DefaultFunc: schema.EnvDefaultFunc("MZ_PORT", 6875),
},
"username": {
Type: schema.TypeString,
Optional: true,
Description: "The Materialize username. Can also come from the `MZ_USERNAME` environment variable.",
DefaultFunc: schema.EnvDefaultFunc("MZ_USERNAME", "mz_system"),
DefaultFunc: schema.EnvDefaultFunc("MZ_USERNAME", "materialize"),
},
},
ResourcesMap: map[string]*schema.Resource{
Expand Down

0 comments on commit 1ed1729

Please sign in to comment.