database

Azure/database/azurerm

Terraform Module HCL AZURERM

Terraform Azure RM Module for Database

Install
module "database" {
source = "Azure/database/azurerm"
version = "2.0.0"
}
⭐ Source on GitHub 📦 Registry page
README

terraform-azurerm-database Create an Azure SQL Database This Terraform module creates a basic Azure SQL Database. Usage ``hcl module "sql-database" { source = "Azure/database/azurerm" resource_group_name = "myapp" location = "westus" db_name = "mydatabase" sql_admin_username = "mradministrator" sql_password = "P@ssw0rd12345!" tags = { environment = "dev" costcenter = "it" } } ` Pre-Commit & Pr-Check & Test Configurations - Configure Terraform for Azure We assumed that you have setup service principal's credentials in your environment variables like below: `shell export ARM_SUBSCRIPTION_ID=" " export ARM_TENANT_ID=" " export ARM_CLIENT_ID=" " export ARM_CLIENT_SECRET=" " ` On Windows Powershell: `shell $env:ARM_SUBSCRIPTION_ID=" " $env:ARM_TENANT_ID=" " $env:ARM_CLIENT_ID=" " $env:ARM_CLIEN

Inputs (14)
NameTypeDescriptionDefault
locationstringThe location/region where the database and server are created. Changing this for required
sql_passwordstringThe administrator password of the SQL Server. required
db_namestringThe name of the database to be created. required
sql_admin_usernamestringThe administrator username of the SQL Server. required
db_editionstringThe edition of the database to be created."Basic"
resource_group_namestringDefault resource group name that the database will be created in."myapp-rg"
server_versionstringThe version for the database server. Valid values are: 2.0 (for v11 server) and "12.0"
collationstringThe collation for the database. Default is SQL_Latin1_General_CP1_CI_AS"SQL_Latin1_General_CP1_CI_AS"
service_objective_namestringThe performance level for the database. For the list of acceptable values, see h"Basic"
end_ip_addressstringDefines the end IP address used in your database firewall rule."0.0.0.0"
start_ip_addressstringDefines the start IP address used in your database firewall rule."0.0.0.0"
tagsmap(string)The tags to associate with your network and subnets.{ "tag1": "", "tag2": "" }
tracing_tags_enabledboolWhether enable tracing tags that generated by BridgeCrew Yor.false
tracing_tags_prefixstringDefault prefix for generated tracing tags"avm_"
Outputs (6)
connection_string — Connection string for the Azure SQL Database created.
database_name — Database name of the Azure SQL Database created.
sql_server_fqdn — Fully Qualified Domain Name (FQDN) of the Azure SQL Database created.
sql_server_location — Location of the Azure SQL Database created.
sql_server_name — Server name of the Azure SQL Database created.
sql_server_version — Version the Azure SQL Database created.
Resources (4)
azurerm_resource_groupazurerm_sql_databaseazurerm_sql_firewall_ruleazurerm_sql_server
Details
FrameworkTerraform Module
LanguageHCL
Version2.0.0
Cloud AZURERM
★ Stars38
Forks65
Total downloads59.8k
Inputs14
Outputs6
Resources4
Examples1
LicenseMIT
NamespaceAzure
Updated