- Terraform module that manages an Azure Public IP Address.
- We can create multiple Public IPs at the same time using this module.
- There are two allocation method for public IP address. Possible values are Static or Dynamic.
- Assign a static public IP address to virtual machines, rather than a dynamic address, to ensure that the address never changes.
- Dynamic addresses can change if a resource such as a virtual machine is stopped (deallocated) and then restarted through Azure.
Note : For more information, you can check example folder.
Terraform v0.15.4
Name | Type |
---|---|
azurerm_public_ip | resource |
Name | Description | Type | Default | Required |
---|---|---|---|---|
public_ip_name | Name of the public ip | list(string) |
yes | |
location | location for public ip | string |
yes | |
resource_group_name | Name of the resource group | string |
yes | |
allocation_method | the allocation method for this IP address.Possible values are Static or Dynamic | string |
Dynamic | yes |
sku | The SKU of the Public IP. Accepted values are Basic and Standard. | string |
Basic | no |
tags | tags given to public ip | map(string) |
no |
Name | Description |
---|---|
public_ip_id | The id's of the Public_ip |
- Tags are assigned to resources according requirement.
- Additial tags can be assigned by tags variables as defined above.
Check out these related projects.
module "public-ip_module" {
source = "./modules/public-ip"
allocation_method = ""
public_ip_name = ["", ""]
sku = ""
location = ""
tags = {
env : ""
author : ""
}
}
Reena Nain |
---|