aci
Azure/aci/azurerm
Azure Container Instances Module
Install
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)
| Name | Type | Description | Default |
|---|---|---|---|
| dns_name_label | any | The DNS label/name for the container groups IP | required |
| os_type | any | The OS for the container group. Allowed values are Linux and Windows | required |
| image_name | any | The container image name | required |
| memory_size | any | The required memory of the containers in GB | "1.5" |
| container_group_name | any | The name of the container group | "myContGroup" |
| container_name | any | The name of the container | "mycont01" |
| cpu_core_number | any | The required number of CPU cores of the containers | "0.5" |
| resource_group_name | any | The name of the resource group | "MyContGroup-RG01" |
| location | any | Azure location | "westus" |
| port_number | any | A public port for the container | "80" |
Outputs (3)
containergroup_id — The ID of the created container groupcontainergroup_ip_address — The IP address of the created container groupcontainergroup_fqdn — The FQDN of the created container group