database
Azure/database/azurerm
Terraform Azure RM Module for Database
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
| Name | Type | Description | Default |
|---|---|---|---|
| location | string | The location/region where the database and server are created. Changing this for | required |
| sql_password | string | The administrator password of the SQL Server. | required |
| db_name | string | The name of the database to be created. | required |
| sql_admin_username | string | The administrator username of the SQL Server. | required |
| db_edition | string | The edition of the database to be created. | "Basic" |
| resource_group_name | string | Default resource group name that the database will be created in. | "myapp-rg" |
| server_version | string | The version for the database server. Valid values are: 2.0 (for v11 server) and | "12.0" |
| collation | string | The collation for the database. Default is SQL_Latin1_General_CP1_CI_AS | "SQL_Latin1_General_CP1_CI_AS" |
| service_objective_name | string | The performance level for the database. For the list of acceptable values, see h | "Basic" |
| end_ip_address | string | Defines the end IP address used in your database firewall rule. | "0.0.0.0" |
| start_ip_address | string | Defines the start IP address used in your database firewall rule. | "0.0.0.0" |
| tags | map(string) | The tags to associate with your network and subnets. | {
"tag1": "",
"tag2": ""
} |
| tracing_tags_enabled | bool | Whether enable tracing tags that generated by BridgeCrew Yor. | false |
| tracing_tags_prefix | string | Default prefix for generated tracing tags | "avm_" |
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.