Skip to content

Commit

Permalink
terraform provision comms services and email service
Browse files Browse the repository at this point in the history
  • Loading branch information
Philip committed Apr 19, 2024
1 parent ee64820 commit 7e1337c
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# resource "azurerm_key_vault_secret" "azurerm_communication_service_connection_string" {
# name = "azurerm-communication-service-connection-string"
# value = azurerm_communication_service.acs.primary_connection_string
# key_vault_id = azurerm_key_vault.keyvault.id
# }
provider "azurerm" {
features {}
}

resource "random_id" "acs" {
byte_length = 2
}

resource "azurerm_communication_service" "communications-services" {
name = "communication-services${random_id.acs.hex}"
resource_group_name = azurerm_resource_group.rg.name
data_location = "Germany"
}

resource "azurerm_email_communication_service" "email-service" {
name = "email-service${random_id.acs.hex}"
resource_group_name = azurerm_resource_group.rg.name
data_location = "Germany"
}
Original file line number Diff line number Diff line change
Expand Up @@ -228,3 +228,9 @@ output "harbor_secondary_access_key_name" {
description = "Name under which the secondary harbor storage account key is stored in keyvault"
value = azurerm_key_vault_secret.harbor_secondary_access_key.name
}

output "acs_connection_string" {
description = "The conneciton string for Azure Communication Service"
value = azurerm_communication_service.communications-services.primary_connection_string
sensitive = true
}

0 comments on commit 7e1337c

Please sign in to comment.