Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I sure wish this post had included a few code snippets, just to make it extra-clear what using Backblaze through Terraform might look like.


Inside the article is a section "How to get started using Backblaze B2 in Terraform" with a link [1] to the getting started guide which should have everything you need.

I can see why they put it on a separate page to not clutter up the article.

[1] https://help.backblaze.com/hc/en-us/articles/1260803375989


Nice, thanks!

I was less interested in the code sample as a "how-to" and more for skimmability – rather than reading a bunch of words I just wanted to see what it would look like.

Eg, from that link:

    terraform {
      required_version = ">= 0.13"
      required_providers {
        b2 = {
          source  = "Backblaze/b2"
          version = "~> 0.2"
        }
      }
    }

    provider "b2" {
    }

    resource "b2_application_key" "example" {
      key_name     = "test-b2-tfp-0000000000000000000"
      capabilities = ["readFiles"]
    }

    data "b2_application_key" "example" {
      key_name = b2_application_key.example.key_name
    }

    output "application_key" {
      value = data.b2_application_key.example
    }




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: