Skip to content
LXD Resource provider for Terraform
Go HCL Shell Makefile
Branch: master
Clone or download
Latest commit 42db7b0 Jun 30, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs Syntax changes for Terraform v0.12 Jun 3, 2019
lxd Acc Tests: Disable second network in access interface test Jun 17, 2019
test-infra Lazy Load Remotes Apr 29, 2018
.travis.yml vendor: switching to go modules Apr 3, 2019 Adding Nov 29, 2015
Makefile Fix windows build issues Jun 28, 2019 update the terraform pluging path Oct 15, 2018
go.mod Fix windows build issues Jun 28, 2019
go.sum Fix windows build issues Jun 28, 2019
main.go cleanup: go fmt main.go Nov 9, 2017


LXD Resource provider for Terraform

Build Status



Using pre-built binary

  1. Download the binary from the project releases page
  2. Extract provider binary from tar file.
  3. Copy to $PATH or the ~/.terraform.d/plugins directory so Terraform can find it.


# List latest binaries:
curl -s | jq '.assets | .[] | .browser_download_url'

# Retrieve zip

# Unzip
unzip terraform-provider-lxd_*.zip

# Copy binary to a location where Terraform will find it
mkdir -p ~/.terraform.d/plugins
mv terraform-provider-lxd ~/.terraform.d/plugins

Building from source

  1. Follow these instructions to setup a Golang development environment.
  2. Use go get to pull down this repository and compile the binary:
go get -v -u


Full documentation can be found in the docs directory.

Known Limitations

Many of the base LXD images don't include an SSH server, therefore terraform will be unable to execute any provisioners. Either use the base ubuntu images from the ubuntu or ubuntu-daily or manually prepare a base image that includes SSH.


Some recognition for great contributors to this project:

You can’t perform that action at this time.