Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/imjoseangel/terraform-azurerm-privateendpoint

Terraform Module for deploying a Private Endpoint
https://github.com/imjoseangel/terraform-azurerm-privateendpoint

azure cloud private-endpoint terraform terraform-module

Last synced: 2 days ago
JSON representation

Terraform Module for deploying a Private Endpoint

Awesome Lists containing this project

README

        

# terraform-azurerm-privateendpoint

[![Terraform](https://github.com/imjoseangel/terraform-azurerm-privateendpoint/actions/workflows/terraform.yml/badge.svg)](https://github.com/imjoseangel/terraform-azurerm-privateendpoint/actions/workflows/terraform.yml)

## Deploys a Azure Private Endpoint in a given subnet for a given component

This Terraform module deploys a Private Endpoint on Azure without DNS Private Zone.

### NOTES

* Name Convention specified as `sa. ` is calculated with `random_string` resource.

## Usage in Terraform 1.0

```terraform
data "azurerm_resource_group" "main" {
name = "network-rsg"
}

data "azurerm_virtual_network" "main" {
name = "global-vnet"
resource_group_name = data.azurerm_resource_group.main.name
}

data "azurerm_subnet" "main" {
name = "privateendpoint-snet"
resource_group_name = data.azurerm_resource_group.main.name
virtual_network_name = data.azurerm_virtual_network.main.name
}

resource "azurerm_private_dns_zone" "main" {
name = "privatelink.blob.core.windows.net"
resource_group_name = "storage-rg"
}

module "privateendpoint" {
source = "github.com/imjoseangel/terraform-azurerm-privateendpoint"
name = "mystorage"
resource_group_name = "storage-rg"
location = "westeurope"
subnet_id = data.azurerm_subnet.main.id
resource_id = azurerm_storage_account.main.id
subresource_names = ["blob", "file"]
}
```

## Authors

Originally created by [imjoseangel](http://github.com/imjoseangel)

## License

[MIT](LICENSE)