Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for encryption #147

Open
1 task done
BosBer opened this issue Apr 24, 2024 · 0 comments
Open
1 task done

Support for encryption #147

BosBer opened this issue Apr 24, 2024 · 0 comments

Comments

@BosBer
Copy link

BosBer commented Apr 24, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Description

Including support for Virtual Network Encryption

New or Affected Resource(s)/Data Source(s)

azurerm_virtual_network

Potential Terraform Configuration

provider "azurerm" {
  features {}
}

resource "azurerm_resource_group" "example" {
  name     = "my-resources"
  location = "West Europe"
}

module "network" {
  source              = "Azure/network/azurerm"
  resource_group_name = azurerm_resource_group.example.name
  address_spaces      = ["10.0.0.0/16", "10.2.0.0/16"]
  subnet_prefixes     = ["10.0.1.0/24", "10.0.2.0/24", "10.0.3.0/24"]
  subnet_names        = ["subnet1", "subnet2", "subnet3"]

  encryption = {
    enforced = "AllowUnencrypted" / "DropUnencrypted"
  }

  subnet_service_endpoints = {
    "subnet1" : ["Microsoft.Sql"],
    "subnet2" : ["Microsoft.Sql"],
    "subnet3" : ["Microsoft.Sql"]
  }
  use_for_each = true
  tags = {
    environment = "dev"
    costcenter  = "it"
  }

  depends_on = [azurerm_resource_group.example]
}

References

hashicorp/terraform-provider-azurerm#22679
hashicorp/terraform-provider-azurerm#22745

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

1 participant