🎉 Announcing new lower pricing — up to 40% lower costs for Cloud Servers and Cloud SQL! Read more →

Using Terraform with Brightbox just got easier

We’re pleased to announce that the Brightbox Terraform Provider is now officially included in Hashicorp’s Terraform cloud provider repository and so can now be installed automatically as part of the initialisation process.

Terraform is a tool to make managing your overall system infrastructure as easy as managing your individual server configuration. You map out all the different components of your systems from as many different providers as you need and represent them all in code. Terraform handles working out all the dependencies, building the components and configuring all the relationships. More details in our original announcement blog.

Installation

After installing Terraform add the brightbox provider stanza to your terraform configuration files:

# Configure the Brightbox Provider
provider "brightbox" {
  version = "~> 1.0"
  username = "${var.user_email_address}"
  password = "${var.user_secret_password}"
  account = "${var.account_to_work_on}"
}

then simply run:

terraform init

This will download the provider plugin ready to apply your plan:

Initializing provider plugins...
- Checking for available provider plugins on https://releases.hashicorp.com...
- Downloading plugin for provider "brightbox" (1.0.5)...

Terraform has been successfully initialized!

You may now begin working with Terraform. Try running "terraform plan" to see
any changes that are required for your infrastructure. All Terraform commands
should now work.

If you ever set or change modules or backend configuration for Terraform,
rerun this command to reinitialize your working directory. If you forget, other
commands will detect it and remind you to do so if necessary.

Further details

More information about the resources and data sources available within the Brightbox Terraform Provider can be found in the official Terraform documentation

Get started

We’ve got a detailed guide on getting Terraform installed and building your first cluster on Brightbox Cloud.

You can sign up for Brightbox in just a couple of minutes and get a £50 free credit to play with Terraform.

Get started with Brightbox Sign up takes just two minutes...