Skip to content

hyukjuns/terraform-azurerm-public-ip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

terraform-azurerm-network

Terraform Cloud Module Registry에 등록하여 관리 하는 VCS 입니다.

Terraform Cloud Module Registry에 연결하기 위한 VCS Naming Convention

  • terraform-<PROVIDER>-<MODULENAME>

Requirements

Name Version
azurerm ~> 3.0

Providers

Name Version
azurerm ~> 3.0

Modules

No modules.

Usage

provider "azurerm" {
  features {}
}

resource "azurerm_resource_group" "public_ip" {
  name     = "tf-rg"
  location = "koreacentral"
}

module "public_ip" {
  source              = "<TFC_REGISTRY>"
  resource_group_name = azurerm_resource_group.public_ip.name
  location            = azurerm_resource_group.public_ip.location
  public_ip_name      = "tf-pubilc-ip-01"
  sku                 = "Standard"
  allocation_method   = "Static"
  availability_zone   = "No-Zone"
  depends_on          = [azurerm_resource_group.public_ip]
}

Resources

Name Type
azurerm_public_ip.pip resource
azurerm_resource_group.pip data source

Inputs

Name Description Type Default Required
allocation_method Allocation Method, ex Dynamic, Static string "Dynamic" no
availability_zone Availablilty zone, ex 1,2,3, No-Zone, Zone-Redundant string "No-Zone" no
location Location string n/a yes
public_ip_name Public ip name string n/a yes
resource_group_name Resource Group Name string n/a yes
sku public ip sku ex Basic, Standard string "Standard" no

Outputs

Name Description
public_ip_address The IP address value that was allocated.
public_ip_fqdn Fully qualified domain name of the A DNS record associated with the public IP. domain_name_label must be specified to get the fqdn. This is the concatenation of the domain_name_label and the regionalized DNS zone
public_ip_id The Public IP ID.