Azure Container Intance Terraform module
Terraform module for creation Azure Container Intance
No modules.
Name
Description
Type
Default
Required
container_instance_name
Specifies the name of the Container Group.
string
n/a
yes
containers
List of objects to configure containers
list(object({ name = string image = string cpu = number memory = number environment_variables = optional(map(string)) commands = optional(list(string)) ports_tcp = optional(set(string), []) ports_udp = optional(set(string), []) volumes = optional(list(object({ mount_path = string name = string storage_account_name = optional(string) storage_account_key = optional(string) share_name = optional(string) })), []) }))
n/a
yes
dns_config_nameservers
A list of nameservers the containers will search out to resolve requests.
list(string)
[]
no
enable_system_assigned_identity
Specifies whether to enable System Assigned identity for container instance or not
bool
false
no
exposed_ports_tcp
Set of ports to expose with TCP protocol
set(string)
[]
no
exposed_ports_udp
Set of ports to expose with UDP protocol
set(string)
[]
no
identity_ids
Specifies a list of User Assigned Managed Identity IDs to be assigned to this Container Group.
list(string)
null
no
image_registry_credential
List of objects to configure connection to private registry
list(object({ server = string username = optional(string) password = optional(string) user_assigned_identity_id = optional(string) }))
[]
no
ip_address_type
Specifies the IP address type of the container. Public, Private or None.
string
"Public"
no
location
Specifies the supported Azure location where the resource exists.
string
n/a
yes
os_type
The OS for the container group. Allowed values are Linux and Windows.
string
"Linux"
no
resource_group_name
The name of the resource group in which to create the Container Group.
string
n/a
yes
restart_policy
Restart policy for the container group. Allowed values are Always, Never, OnFailure.
string
"Never"
no
sku
Specifies the sku of the Container Group. Possible values are Confidential, Dedicated and Standard.
string
"Standard"
no
subnet_ids
The subnet resource IDs for a container group.
list(string)
[]
no
tags
Resource tags.
map(string)
{}
no
Name
Description
id
Id of the Azure Container Instance
identity
List of identities assigned to the Azure Container Instance
ip_address
Public IP address of the Azure Container Instance
name
Name of the Azure Container Instance
Apache 2 Licensed. For more information please see LICENSE