:: Azure public ip 생성
:: resrouce 그룹은 resourcegroup.tf 에서 생성한 resource 사용
resource "azurerm_public_ip" "dkkimvm-public-ip" {
name = "dkkimvm-pip"
location = azurerm_resource_group.DKKIM.location
resource_group_name = azurerm_resource_group.DKKIM.name
allocation_method = "Dynamic"
sku = "Basic"
tags = {
environment = "management:dkkim"
}
}
'Work > Terraform for Azure' 카테고리의 다른 글
Terraform vm.tf (0) | 2024.01.04 |
---|---|
Terraform vnet.tf (0) | 2024.01.03 |
Terraform resourcegroup.tf (0) | 2024.01.03 |
Terraform main.tf (1) | 2024.01.03 |
Linux 환경(CentOS)에서 Terraform 환경 설정 for Azure (0) | 2024.01.02 |