Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explain that users should not need to set the endpoint #83

Merged
merged 2 commits into from
Sep 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.