Skip to content

Commit

Permalink
Merge pull request #2 from kumarvna/develop
Browse files Browse the repository at this point in the history
updating examples
  • Loading branch information
kumarvna authored Jun 27, 2021
2 parents 693c743 + 2edee12 commit 0cdca35
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 26 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Azure Database for MariaDB is a relational database service based on the open-so
## Module Usage

```hcl
module "mariadb" {
module "mariadb-server" {
source = "kumarvna/mariadb-server/azurerm"
version = "1.0.0"
Expand Down
2 changes: 1 addition & 1 deletion examples/MariaDB_Server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Azure Database for MariaDB is a relational database service based on the open-so
## Module Usage

```terraform
module "mariadb" {
module "mariadb-server" {
source = "kumarvna/mariadb-server/azurerm"
version = "1.0.0"
Expand Down
2 changes: 1 addition & 1 deletion examples/MariaDB_Server/main.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module "mariadb" {
module "mariadb-server" {
source = "kumarvna/mariadb-server/azurerm"
version = "1.0.0"

Expand Down
15 changes: 7 additions & 8 deletions examples/MariaDB_Server/output.tf
Original file line number Diff line number Diff line change
@@ -1,35 +1,34 @@
output "resource_group_name" {
description = "The name of the resource group in which resources are created"
value = module.mariadb.resource_group_name
value = module.mariadb-server.resource_group_name
}

output "resource_group_location" {
description = "The location of the resource group in which resources are created"
value = module.mariadb.resource_group_location
value = module.mariadb-server.resource_group_location
}

output "storage_account_id" {
description = "The ID of the storage account"
value = module.mariadb.storage_account_id
value = module.mariadb-server.storage_account_id
}

output "storage_account_name" {
description = "The name of the storage account"
value = module.mariadb.storage_account_name
value = module.mariadb-server.storage_account_name
}

output "mariadb_server_id" {
description = "The resource ID of the MariaDB Server"
value = module.mariadb.mariadb_server_id
value = module.mariadb-server.mariadb_server_id
}

output "mariadb_server_fqdn" {
description = "The FQDN of the MariaDB Server"
value = module.mariadb.mariadb_server_fqdn
value = module.mariadb-server.mariadb_server_fqdn
}

output "mariadb_database_id" {
description = "The resource ID of the MariaDB Database"
value = module.mariadb.mariadb_database_id
value = module.mariadb-server.mariadb_database_id
}

4 changes: 2 additions & 2 deletions examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Azure Database for MariaDB is a relational database service based on the open-so
## Module Usage (MariaDB with optional resources)

```terraform
module "mariadb" {
module "mariadb-server" {
source = "kumarvna/mariadb-server/azurerm"
version = "1.0.0"
Expand Down Expand Up @@ -80,7 +80,7 @@ module "mariadb" {
## Module Usage (MariaDB with Private Endpoint and other optional resources)

```hcl
module "mariadb" {
module "mariadb-server" {
source = "kumarvna/mariadb-server/azurerm"
version = "1.0.0"
Expand Down
2 changes: 1 addition & 1 deletion examples/mariadb_server_with_private_endpoints/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Azure Database for MariaDB is a relational database service based on the open-so
## Module Usage

```terraform
module "mariadb" {
module "mariadb-server" {
source = "kumarvna/mariadb-server/azurerm"
version = "1.0.0"
Expand Down
2 changes: 1 addition & 1 deletion examples/mariadb_server_with_private_endpoints/main.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module "mariadb" {
module "mariadb-server" {
source = "kumarvna/mariadb-server/azurerm"
version = "1.0.0"

Expand Down
22 changes: 11 additions & 11 deletions examples/mariadb_server_with_private_endpoints/output.tf
Original file line number Diff line number Diff line change
@@ -1,54 +1,54 @@
output "resource_group_name" {
description = "The name of the resource group in which resources are created"
value = module.mariadb.resource_group_name
value = module.mariadb-server.resource_group_name
}

output "resource_group_location" {
description = "The location of the resource group in which resources are created"
value = module.mariadb.resource_group_location
value = module.mariadb-server.resource_group_location
}

output "storage_account_id" {
description = "The ID of the storage account"
value = module.mariadb.storage_account_id
value = module.mariadb-server.storage_account_id
}

output "storage_account_name" {
description = "The name of the storage account"
value = module.mariadb.storage_account_name
value = module.mariadb-server.storage_account_name
}

output "mariadb_server_id" {
description = "The resource ID of the MariaDB Server"
value = module.mariadb.mariadb_server_id
value = module.mariadb-server.mariadb_server_id
}

output "mariadb_server_fqdn" {
description = "The FQDN of the MariaDB Server"
value = module.mariadb.mariadb_server_fqdn
value = module.mariadb-server.mariadb_server_fqdn
}

output "mariadb_database_id" {
description = "The resource ID of the MariaDB Database"
value = module.mariadb.mariadb_database_id
value = module.mariadb-server.mariadb_database_id
}

output "mariadb_server_private_endpoint" {
description = "id of the MariaDB server Private Endpoint"
value = module.mariadb.mariadb_server_private_endpoint
value = module.mariadb-server.mariadb_server_private_endpoint
}

output "mariadb_server_private_dns_zone_domain" {
description = "DNS zone name of MariaDB server Private endpoints dns name records"
value = module.mariadb.mariadb_server_private_dns_zone_domain
value = module.mariadb-server.mariadb_server_private_dns_zone_domain
}

output "mariadb_server_private_endpoint_ip" {
description = "MariaDB server private endpoint IPv4 Addresses "
value = module.mariadb.mariadb_server_private_endpoint_ip
value = module.mariadb-server.mariadb_server_private_endpoint_ip
}

output "mariadb_server_private_endpoint_fqdn" {
description = "MariaDB server private endpoint FQDN Addresses "
value = module.mariadb.mariadb_server_private_endpoint_fqdn
value = module.mariadb-server.mariadb_server_private_endpoint_fqdn
}

0 comments on commit 0cdca35

Please sign in to comment.