There's a lot of open issues
Terraspace Azurerm Cloud Plugin
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

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.storage_account.sku.name = "Standard_LRS"
  config.storage_account.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.