An open API service indexing awesome lists of open source software.

https://github.com/Backblaze/terraform-provider-b2

Terraform Provider for Backblaze B2 Cloud Storage
https://github.com/Backblaze/terraform-provider-b2

production

Last synced: 5 months ago
JSON representation

Terraform Provider for Backblaze B2 Cloud Storage

Awesome Lists containing this project

README

        

Terraform Provider B2
=====================
[![Continuous Integration](https://github.com/Backblaze/terraform-provider-b2/workflows/Continuous%20Integration/badge.svg)](https://github.com/Backblaze/terraform-provider-b2/actions?query=workflow%3A%22Continuous+Integration%22)

Terraform provider for Backblaze B2.

The provider is written in go, but it uses official [B2 python SDK](https://github.com/Backblaze/b2-sdk-python/) embedded into the binary.

Requirements
------------

Runtime requirements:
- [Terraform](https://www.terraform.io/downloads.html) >= 1.0.0

Development requirements:
- [Go](https://golang.org/doc/install) == 1.22
- [Python](https://github.com/pyenv/pyenv) == 3.12

Dependencies
------------
*Note:* You should run it inside python virtualenv as it installs the dependencies for the python bindings as well.

```
make deps
```

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
----------

```
make install
```

Testing
-------

*Note:* Acceptance tests create real resources, and often cost money to run.

```
export B2_TEST_APPLICATION_KEY=your_app_key
export B2_TEST_APPLICATION_KEY_ID=your_app_key_id
make testacc
```

Debugging
---------

Set TF_LOG_PROVIDER and TF_LOG_PATH env variables to see detailed information from the provider.
Check https://www.terraform.io/docs/internals/debugging.html for details

Release History
-----------------

Please refer to the [changelog](CHANGELOG.md).