-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add module for user assigned managed identity and update the tags bas…
…ed on new policies (#12) * DEVOPS-289 added tags to API management module and did terraform fmt * DEVOPS-289 added tags tologanalytics ws module and did terraform fmt * DEVOPS-289 terraform fmt * DEVOPS-289 updated provider version to v4.0 azurerm * DEVOPS-289 added tags to storage accnt module and added temporarry and did terraform fmt * DEVOPS-289 did terraform fmt * DEVOPS-289 created user assigned man * terraform fmt and temporary tag DEVOPS-291
- Loading branch information
1 parent
b4bd588
commit 3a3e2c5
Showing
18 changed files
with
281 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,29 @@ | ||
output "azure_resource_group_name" { | ||
description = "Azure resource group name" | ||
value = azurerm_resource_group.rg.name | ||
value = azurerm_resource_group.rg.name | ||
} | ||
|
||
output "azure_api_management_name" { | ||
description = "Azure API management name" | ||
value = azurerm_api_management.apim.name | ||
value = azurerm_api_management.apim.name | ||
} | ||
|
||
output "azure_api_management_location" { | ||
description = "Azure API management location" | ||
value = azurerm_api_management.apim.location | ||
value = azurerm_api_management.apim.location | ||
} | ||
|
||
output "azure_api_management_publisher_name" { | ||
description = "Azure API management" | ||
value = azurerm_api_management.apim.publisher_name | ||
value = azurerm_api_management.apim.publisher_name | ||
} | ||
|
||
output "azure_api_management_publisher_emailids" { | ||
description = "Azure API management publisher emails" | ||
value = azurerm_api_management.apim.publisher_email | ||
value = azurerm_api_management.apim.publisher_email | ||
} | ||
|
||
output "azure_api_management_sku" { | ||
description = "Azure API management SKU" | ||
value = azurerm_api_management.apim.sku_name | ||
value = azurerm_api_management.apim.sku_name | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,74 @@ | ||
variable "resource_group_name" { | ||
type = string | ||
type = string | ||
description = "Azure Storage Account Rg" | ||
} | ||
|
||
variable "location" { | ||
type = string | ||
type = string | ||
description = "Azure storage account location" | ||
} | ||
|
||
variable "api_management_name" { | ||
description = "Azure api management name" | ||
type = string | ||
type = string | ||
} | ||
|
||
variable "publisher_name" { | ||
description = "Publisher of API" | ||
type = list(string) | ||
type = list(string) | ||
validation { | ||
condition = can(index(var.publisher_name, 0)) | ||
condition = can(index(var.publisher_name, 0)) | ||
error_message = "A value is required for Publisher name." | ||
} | ||
} | ||
|
||
variable "publisher_email" { | ||
description = "Email ID of API publishers" | ||
type = list(string) | ||
type = list(string) | ||
validation { | ||
condition = can(index(var.publisher_email, 0)) | ||
error_message = "At least one Publisher email is required." | ||
error_message = "At least one Publisher email is required." | ||
} | ||
} | ||
|
||
variable "sku_name_part1" { | ||
description = "SKU name of API management " | ||
type = string | ||
type = string | ||
validation { | ||
condition = contains(["Consumption","Developer","Basic","Standard", "Premium"], var.sku_name_part1) | ||
condition = contains(["Consumption", "Developer", "Basic", "Standard", "Premium"], var.sku_name_part1) | ||
error_message = "SKU name should be one among Consumption, Developer,Basic,Standard,Premium." | ||
} | ||
} | ||
} | ||
|
||
variable "sku_name_part2" { | ||
description = "Sku capacity part" | ||
type = string | ||
type = string | ||
} | ||
|
||
|
||
variable "temporary" { | ||
default = "TRUE" | ||
description = "Temporary tag value in Azure" | ||
type = string | ||
validation { | ||
condition = contains(["TRUE", "FALSE"], upper(var.temporary)) | ||
error_message = "The temporary tag value must be either 'TRUE' or 'FALSE'." | ||
} | ||
|
||
} | ||
|
||
variable "application_name" { | ||
default = "" | ||
description = "Azure application name tag" | ||
type = string | ||
} | ||
|
||
variable "environment" { | ||
default = "" | ||
description = "Environment tag value in Azure" | ||
type = string | ||
validation { | ||
condition = contains(["DEV", "QA", "UAT", "PROD"], var.environment) | ||
error_message = "Environment value should be one among DEV or QA or UAT or PROD." | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
output "loganalytics_workspace_name" { | ||
value = azurerm_log_analytics_workspace.loganalytics_ws.name | ||
value = azurerm_log_analytics_workspace.loganalytics_ws.name | ||
description = "Azure Log analytics workspace name" | ||
} | ||
|
||
output "loganalytics_workspace_resource_group" { | ||
value = azurerm_log_analytics_workspace.loganalytics_ws.resource_group_name | ||
description = "Azure Log analytics workspace resource group name" | ||
value = azurerm_log_analytics_workspace.loganalytics_ws.resource_group_name | ||
description = "Azure Log analytics workspace resource group name" | ||
} | ||
|
||
output "loganalytics_retention_period" { | ||
value = azurerm_log_analytics_workspace.loganalytics_ws.retention_in_days | ||
value = azurerm_log_analytics_workspace.loganalytics_ws.retention_in_days | ||
description = "Azure loganalytics data retention in days" | ||
} | ||
|
||
output "loganalytics_sku" { | ||
value = azurerm_log_analytics_workspace.loganalytics_ws.sku | ||
value = azurerm_log_analytics_workspace.loganalytics_ws.sku | ||
description = "Azure loganalytics SKU" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,34 @@ | ||
output "azurerm_resource_group" { | ||
description = "Azure resource group name" | ||
value = azurerm_resource_group.storage_rg.name | ||
value = azurerm_resource_group.storage_rg.name | ||
} | ||
|
||
output "storage_account_name" { | ||
description = "Azure storage account name" | ||
value = azurerm_storage_account.storage.name | ||
value = azurerm_storage_account.storage.name | ||
} | ||
|
||
output "storage_account_location" { | ||
description = "Azure storage account location" | ||
value = azurerm_storage_account.storage.location | ||
value = azurerm_storage_account.storage.location | ||
} | ||
|
||
output "storage_account_delete_retention_policy" { | ||
description = "Azure blob retention policy" | ||
value = azurerm_storage_account.storage.blob_properties[0].delete_retention_policy | ||
value = azurerm_storage_account.storage.blob_properties[0].delete_retention_policy | ||
} | ||
|
||
output "storage_account_tier" { | ||
description = "Azure storage account tier" | ||
value = azurerm_storage_account.storage.access_tier | ||
value = azurerm_storage_account.storage.access_tier | ||
} | ||
|
||
output "storage_account_replication_type" { | ||
description = "Azure storage account replication type" | ||
value = azurerm_storage_account.storage.account_replication_type | ||
value = azurerm_storage_account.storage.account_replication_type | ||
} | ||
|
||
output "storage_account_tags" { | ||
description = "Azure storage account tags" | ||
value = azurerm_storage_account.storage.tags | ||
value = azurerm_storage_account.storage.tags | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.