Skip to content

Instantly share code, notes, and snippets.

@ItayPodhajcer
Created March 15, 2023 15:32
Show Gist options
  • Save ItayPodhajcer/99b1c9a1c597c128abf3ca689356e640 to your computer and use it in GitHub Desktop.
Save ItayPodhajcer/99b1c9a1c597c128abf3ca689356e640 to your computer and use it in GitHub Desktop.
terraform-azure-mastodon/main.tf#tg-vars-pass
locals {
name = "${var.deployment_name}-${var.location}"
database_user = "dbuser"
mastodon_user = "user"
mastodon_email = "user@email.com"
}
resource "azurerm_resource_group" "this" {
name = "rg-${local.name}"
location = var.location
}
resource "random_password" "database" {
special = false
length = 16
}
resource "random_password" "elastic" {
special = false
length = 16
}
resource "random_password" "mastodon" {
special = false
length = 16
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment