Skip to content

sodle/terraform-provider-bsky

Repository files navigation

Terraform Provider for Bluesky PDS

https://registry.terraform.io/providers/sodle/bsky/latest/docs

Getting started with the provider

Specify your PDS host url, handle, and either the password for the handle or an app password for added security.

provider "bsky" {
  pds_host           = "https://bsky.social" // or set via the BSKY_PDS_HOST env var
  handle             = "scoott.blog"         // or set via the BSKY_HANDLE   env var
  password           = "<password>"          // or set via the BSKY_PASSWORD env var

  // PDS admin password only needed for bsky_account creation
  pds_admin_password = "<admin password>     // or set via the BSKY_ADMIN_PASSWORD env var
}

Building the provider

Install go and golangci-lint v2:

> choco install golang
> curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/HEAD/install.sh | sh -s -- -b $(go env GOPATH)/bin v2.1.6

Run the make file:

> make

Running the acceptance tests

The make file will run the acceptance tests, they require the following environment variable pointing to a testing PDS:

> BSKY_PDS_HOST=https://scoott.blog
> BSKY_HANDLE=root
> BSKY_PASSWORD=*******
> BSKY_ADMIN_PASSWORD=********
> make

Debugging the provider

About

Manage Bluesky accounts and lists via Terraform

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

 
 
 

Contributors