Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/boltops-tools/terraspace_plugin_azurerm

Terraspace Azurerm Provider
https://github.com/boltops-tools/terraspace_plugin_azurerm

boltops terraform terraspace

Last synced: about 1 month ago
JSON representation

Terraspace Azurerm Provider

Awesome Lists containing this project

README

        

# Terraspace Azurerm Plugin

[![BoltOps Badge](https://img.boltops.com/boltops/badges/boltops-badge.png)](https://www.boltops.com)

[![Gem Version](https://badge.fury.io/rb/terraspace_plugin_azurerm.svg)](https://badge.fury.io/rb/terraspace_plugin_azurerm)

Azurerm support for [terraspace](https://terraspace.cloud/).

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'terraspace_plugin_azurerm'
```

## Configure

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

config/plugins/azurerm.rb

```ruby
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:

* [resource group](https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/manage-resource-groups-portal)
* [storage account](https://docs.microsoft.com/en-us/azure/storage/common/storage-account-create?tabs=azure-portal)
* [storage container](https://docs.microsoft.com/en-us/cli/azure/storage/container?view=azure-cli-latest#az-storage-container-create)

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](https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/manage-resource-groups-portal), [storage account](https://docs.microsoft.com/en-us/azure/storage/common/storage-account-create?tabs=azure-portal), and [storage container](https://docs.microsoft.com/en-us/cli/azure/storage/container?view=azure-cli-latest#az-storage-container-create) 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](https://docs.microsoft.com/en-us/cli/azure/) settings. For those interested, this is done with the [boltops-tools/azure_info](https://github.com/boltops-tools/azure_info) library.

## Contributing

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