Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/boltops-tools/terraspace_plugin_azurerm
- Owner: boltops-tools
- License: apache-2.0
- Created: 2020-05-28T16:49:12.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-05-01T12:25:32.000Z (8 months ago)
- Last Synced: 2024-11-11T21:55:51.900Z (about 1 month ago)
- Topics: boltops, terraform, terraspace
- Language: Ruby
- Homepage:
- Size: 80.1 KB
- Stars: 1
- Watchers: 4
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
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 creationconfig.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_SECRETOther env variables can be optionally set:
ARM_TENANT_ID
ARM_SUBSCRIPTION_IDWhen 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.