Skip to content

Commit

Permalink
Merge pull request #83 from metadaddy/expand-endpoint-doc
Browse files Browse the repository at this point in the history
Explain that users should not need to set the endpoint
  • Loading branch information
mlech-reef authored Sep 11, 2024
2 parents 42733c1 + 78b32e4 commit 4937d97
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
* Fixed `allowed_operations` stability issue
* Use macos-14 for ARM as macos-13-large is Intel
* Clarified the purpose of the `endpoint`/`B2_ENDPOINT` configuration value

## [0.8.12] - 2024-06-20

Expand Down
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,17 @@ Building
make build
```

Documentation
-------------

The documentation is generated from the provider source code using
[`tfplugindocs`](https://github.com/hashicorp/terraform-plugin-docs). You will need to regenerate the documentation if
you add or change a data source, resource or argument.

```
make docs
```

Installing
----------

Expand Down
3 changes: 2 additions & 1 deletion b2/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ func New(version string, exec string) func() *schema.Provider {
DefaultFunc: schema.EnvDefaultFunc("B2_APPLICATION_KEY", nil),
},
"endpoint": {
Description: "B2 endpoint - production or custom URL (B2_ENDPOINT env)",
Description: "B2 endpoint - the string 'production' or a custom B2 API URL (B2_ENDPOINT env)." +
" Defaults to 'production'. You should not need to set this unless you work at Backblaze.",
Type: schema.TypeString,
Optional: true,
DefaultFunc: schema.EnvDefaultFunc("B2_ENDPOINT", "production"),
Expand Down
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ resource "b2_bucket" "example_bucket" {

- `application_key` (String, Sensitive) B2 Application Key (B2_APPLICATION_KEY env)
- `application_key_id` (String, Sensitive) B2 Application Key ID (B2_APPLICATION_KEY_ID env)
- `endpoint` (String) B2 endpoint - production or custom URL (B2_ENDPOINT env)
- `endpoint` (String) B2 endpoint - the string 'production' or a custom B2 API URL (B2_ENDPOINT env). Defaults to 'production'. You should not need to set this unless you work at Backblaze.

0 comments on commit 4937d97

Please sign in to comment.