Terraspace Azurerm Plugin

BoltOps Badge

Gem Version

Azurerm support for terraspace.

Installation

Add this line to your application's Gemfile:

gem 'terraspace_plugin_azurerm'

Configure

Optionally configure the plugin. Here's an example azurerm.rb for your terraspace project.

config/plugins/azurerm.rb

TerraspacePluginAzurerm.configure do |config|
  config.auto_create = true # set false to disable auto creation

  config..sku.name = "Standard_LRS"
  config..sku.tier = "Standard"

  config.tags = {env: Terraspace.env, terraspace: true}
end

By default, this plugin will automatically create the:

The settings generally only apply if the resource does not yet exist yet and is created for the first time.

Environment Variables

To create the Azure resources like resource group, storage account, and storage container these environment variables are required:

ARM_CLIENT_ID
ARM_CLIENT_SECRET

Other env variables can be optionally set:

ARM_TENANT_ID
ARM_SUBSCRIPTION_ID

When not set, their values are inferred from the az cli settings. For those interested, this is done with the boltops-tools/azure_info library.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/boltops-tools/terraspace_plugin_azurerm.