aci

Azure/aci/azurerm

Terraform Module HCL AZURERM ⏱ stale 2y 3mo

Azure Container Instances Module

Install

module "aci" {
source = "Azure/aci/azurerm"
version = "1.0.0"
}
⭐ Source on GitHub 📦 Registry page

README

terraform-azurerm-aci Deploy a container via Azure Container Instances This Terraform module deploys a Linux or Windows container in Azure using Azure Container Instances. The module demonstrates the fastest and simplest way to run a container in Azure, without having to manage any virtual machines and without having to adopt a higher-level service. Usage ``hcl module "aci" { source = "Azure/aci/azurerm" resource_group_name = "MyContGroup-RG01" location = "westus" container_group_name = "myContGroup" dns_name_label = "cont01-example" os_type = "linux" image_name = "microsoft/aci-helloworld" container_name = "mycont01" cpu_core_number = "0.5" memory_size = "1.5" port_number = "80" } ` Example creating container based on image from Docker Hub `hcl variable "resource_group_name" { default = "

Inputs (10)

NameTypeDescriptionDefault
dns_name_labelanyThe DNS label/name for the container groups IP required
os_typeanyThe OS for the container group. Allowed values are Linux and Windows required
image_nameanyThe container image name required
memory_sizeanyThe required memory of the containers in GB"1.5"
container_group_nameanyThe name of the container group"myContGroup"
container_nameanyThe name of the container"mycont01"
cpu_core_numberanyThe required number of CPU cores of the containers"0.5"
resource_group_nameanyThe name of the resource group"MyContGroup-RG01"
locationanyAzure location"westus"
port_numberanyA public port for the container"80"

Outputs (3)

containergroup_id — The ID of the created container group
containergroup_ip_address — The IP address of the created container group
containergroup_fqdn — The FQDN of the created container group

Resources (2)

azurerm_container_groupazurerm_resource_group

Details

FrameworkTerraform Module
LanguageHCL
Version1.0.0
Cloud AZURERM
★ Stars19
Forks19
Total downloads7.4k
Inputs10
Outputs3
Resources2
LicenseMIT
NamespaceAzure
Updated