Skip to content

Commit 61acc10

Browse files
authored
Merge pull request #6 from kumarvna/develop
updating examples
2 parents 34e6ee4 + 0cba67f commit 61acc10

File tree

3 files changed

+91
-5
lines changed

3 files changed

+91
-5
lines changed

README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Azure Database for MySQL is easy to set up, manage and scale. It automates the management and maintenance of your infrastructure and database server, including routine updates, backups and security. Enjoy maximum control of database management with custom maintenance windows and multiple configuration parameters for fine grained tuning with Flexible Server (Preview).
44

5-
## Resources are supported
5+
## Resources supported
66

77
* [MySQL Servers](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/mysql_server)
88
* [MySQL Database](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/mysql_database)
@@ -198,9 +198,7 @@ By default, this feature not enabled on this module. Enable threat detection pol
198198

199199
Azure Private Endpoint is a network interface that connects you privately and securely to a service powered by Azure Private Link. Private Endpoint uses a private IP address from your VNet, effectively bringing the service into your VNet.
200200

201-
With Private Link, Microsoft offering the ability to associate a logical server to a specific private IP address (also known as private endpoint) within the VNet. This module helps to implement Failover Groups using private endpoint for SQL Database instead of the public endpoint thus ensuring that customers can get security benefits that it offers.
202-
203-
Clients can connect to the Private endpoint from the same VNet, peered VNet in same region, or via VNet-to-VNet connection across regions. Additionally, clients can connect from on-premises using ExpressRoute, private peering, or VPN tunneling.
201+
With Private Link, Microsoft offering the ability to associate a logical server to a specific private IP address (also known as private endpoint) within the VNet. Clients can connect to the Private endpoint from the same VNet, peered VNet in same region, or via VNet-to-VNet connection across regions. Additionally, clients can connect from on-premises using ExpressRoute, private peering, or VPN tunneling.
204202

205203
By default, this feature not enabled on this module. To create private link with private endpoints set the variable `enable_private_endpoint` to `true` and provide `virtual_network_name`, `private_subnet_address_prefix` with a valid values. You can also use the existing private DNS zone to create DNS records. To use this feature, set the `existing_private_dns_zone` with a valid existing private DNS zone name.
206204

@@ -256,7 +254,7 @@ An effective naming convention assembles resource names by using important resou
256254
`disabled_alerts`|Specifies an array of alerts that are disabled. Allowed values are: `Sql_Injection`, `Sql_Injection_Vulnerability`, `Access_Anomaly`, `Data_Exfiltration`, `Unsafe_Action`|list(any)|`[]`
257255
`log_retention_days`|Specifies the number of days to keep in the Threat Detection audit logs|number|`30`
258256
`mysql_configuration`|Sets a MySQL Configuration value on a MySQL Server|map(string)|`{}`
259-
firewall_rules|Range of IP addresses to allow firewall connections|map(object({}))|`null`
257+
`firewall_rules`|Range of IP addresses to allow firewall connections|map(object({}))|`null`
260258
`ad_admin_login_name`|The login name of the principal to set as the server administrator|string|`null`
261259
`key_vault_key_id`|The URL to a Key Vault custom managed key|string|`null`
262260
`extaudit_diag_logs`|Database Monitoring Category details for Azure Diagnostic setting|list(string)|`["MySqlSlowLogs", "MySqlAuditLogs"]`

examples/MySQL_Server/output.tf

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
output "resource_group_name" {
2+
description = "The name of the resource group in which resources are created"
3+
value = module.mysql-db.resource_group_name
4+
}
5+
6+
output "resource_group_location" {
7+
description = "The location of the resource group in which resources are created"
8+
value = module.mysql-db.resource_group_location
9+
}
10+
11+
output "storage_account_id" {
12+
description = "The ID of the storage account"
13+
value = module.mysql-db.storage_account_id
14+
}
15+
16+
output "storage_account_name" {
17+
description = "The name of the storage account"
18+
value = module.mysql-db.storage_account_name
19+
}
20+
21+
output "mysql_server_id" {
22+
description = "The resource ID of the MySQL Server"
23+
value = module.mysql-db.mysql_server_id
24+
}
25+
26+
output "mysql_server_fqdn" {
27+
description = "The FQDN of the MySQL Server"
28+
value = module.mysql-db.mysql_server_fqdn
29+
}
30+
31+
output "mysql_database_id" {
32+
description = "The resource ID of the MySQL Database"
33+
value = module.mysql-db.mysql_database_id
34+
}
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
output "resource_group_name" {
2+
description = "The name of the resource group in which resources are created"
3+
value = module.mysql-db.resource_group_name
4+
}
5+
6+
output "resource_group_location" {
7+
description = "The location of the resource group in which resources are created"
8+
value = module.mysql-db.resource_group_location
9+
}
10+
11+
output "storage_account_id" {
12+
description = "The ID of the storage account"
13+
value = module.mysql-db.storage_account_id
14+
}
15+
16+
output "storage_account_name" {
17+
description = "The name of the storage account"
18+
value = module.mysql-db.storage_account_name
19+
}
20+
21+
output "mysql_server_id" {
22+
description = "The resource ID of the MySQL Server"
23+
value = module.mysql-db.mysql_server_id
24+
}
25+
26+
output "mysql_server_fqdn" {
27+
description = "The FQDN of the MySQL Server"
28+
value = module.mysql-db.mysql_server_fqdn
29+
}
30+
31+
output "mysql_database_id" {
32+
description = "The resource ID of the MySQL Database"
33+
value = module.mysql-db.mysql_database_id
34+
}
35+
36+
output "mysql_server_private_endpoint" {
37+
description = "id of the MySQL server Private Endpoint"
38+
value = module.mysql-db.mysql_server_private_endpoint
39+
}
40+
41+
output "mysql_server_private_dns_zone_domain" {
42+
description = "DNS zone name of MySQL server Private endpoints dns name records"
43+
value = module.mysql-db.mysql_server_private_dns_zone_domain
44+
}
45+
46+
output "mysql_server_private_endpoint_ip" {
47+
description = "MySQL server private endpoint IPv4 Addresses "
48+
value = module.mysql-db.mysql_server_private_endpoint_ip
49+
}
50+
51+
output "mysql_server_private_endpoint_fqdn" {
52+
description = "MySQL server private endpoint FQDN Addresses "
53+
value = module.mysql-db.mysql_server_private_endpoint_fqdn
54+
}

0 commit comments

Comments
 (0)