Skip to content

Commit

Permalink
feat: update environment variable name in provider configuration (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gezi-lzq authored Aug 29, 2024
1 parent c21666a commit df53c76
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ terraform {
}
provider "automq" {
automq_byoc_endpoint = var.automq_byoc_endpoint # optionally use AUTOMQ_BYOC_HOST environment variable
automq_byoc_endpoint = var.automq_byoc_endpoint # optionally use AUTOMQ_BYOC_ENDPOINT environment variable
automq_byoc_access_key_id = var.automq_byoc_access_key_id # optionally use AUTOMQ_BYOC_ACCESS_KEY_ID environment variable
automq_byoc_secret_key = var.automq_byoc_secret_key # optionally use AUTOMQ_BYOC_SECRET_KEY environment variable
}
Expand Down
2 changes: 1 addition & 1 deletion examples/provider/provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ terraform {
}

provider "automq" {
automq_byoc_endpoint = var.automq_byoc_endpoint # optionally use AUTOMQ_BYOC_HOST environment variable
automq_byoc_endpoint = var.automq_byoc_endpoint # optionally use AUTOMQ_BYOC_ENDPOINT environment variable
automq_byoc_access_key_id = var.automq_byoc_access_key_id # optionally use AUTOMQ_BYOC_ACCESS_KEY_ID environment variable
automq_byoc_secret_key = var.automq_byoc_secret_key # optionally use AUTOMQ_BYOC_SECRET_KEY environment variable
}
Expand Down
2 changes: 1 addition & 1 deletion internal/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ func (p *AutoMQProvider) Configure(ctx context.Context, req provider.ConfigureRe
// Default values to environment variables, but override
// with Terraform configuration value if set.

byoc_endpoint := os.Getenv("AUTOMQ_BYOC_HOST")
byoc_endpoint := os.Getenv("AUTOMQ_BYOC_ENDPOINT")
byoc_access_key := os.Getenv("AUTOMQ_BYOC_ACCESS_KEY")
byoc_secret_key := os.Getenv("AUTOMQ_BYOC_SECRET_KEY")

Expand Down

0 comments on commit df53c76

Please sign in to comment.