https://github.com/data-platform-hq/terraform-azurerm-container-instance
Terraform module for creation Azure Container Intance
https://github.com/data-platform-hq/terraform-azurerm-container-instance
azure azurerm container-instance terraform-module
Last synced: 4 months ago
JSON representation
Terraform module for creation Azure Container Intance
- Host: GitHub
- URL: https://github.com/data-platform-hq/terraform-azurerm-container-instance
- Owner: data-platform-hq
- License: other
- Created: 2024-01-29T09:53:09.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-03-18T20:38:56.000Z (about 1 year ago)
- Last Synced: 2025-03-18T21:31:25.016Z (about 1 year ago)
- Topics: azure, azurerm, container-instance, terraform-module
- Language: HCL
- Homepage: https://registry.terraform.io/modules/data-platform-hq/container-instance/azurerm/latest
- Size: 15.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Azure Container Intance Terraform module
Terraform module for creation Azure Container Intance
## Usage
## Requirements
| Name | Version |
|------|---------|
| [terraform](#requirement\_terraform) | >= 1.0.0 |
| [azurerm](#requirement\_azurerm) | >= 3.68.0 |
## Providers
| Name | Version |
|------|---------|
| [azurerm](#provider\_azurerm) | >= 3.68.0 |
## Modules
No modules.
## Resources
| Name | Type |
|------|------|
| [azurerm_container_group.this](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/container_group) | resource |
## Inputs
| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| [container\_instance\_name](#input\_container\_instance\_name) | Specifies the name of the Container Group. | `string` | n/a | yes |
| [containers](#input\_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](#input\_dns\_config\_nameservers) | A list of nameservers the containers will search out to resolve requests. | `list(string)` | `[]` | no |
| [enable\_system\_assigned\_identity](#input\_enable\_system\_assigned\_identity) | Specifies whether to enable System Assigned identity for container instance or not | `bool` | `false` | no |
| [exposed\_ports\_tcp](#input\_exposed\_ports\_tcp) | Set of ports to expose with TCP protocol | `set(string)` | `[]` | no |
| [exposed\_ports\_udp](#input\_exposed\_ports\_udp) | Set of ports to expose with UDP protocol | `set(string)` | `[]` | no |
| [identity\_ids](#input\_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](#input\_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](#input\_ip\_address\_type) | Specifies the IP address type of the container. Public, Private or None. | `string` | `"Public"` | no |
| [location](#input\_location) | Specifies the supported Azure location where the resource exists. | `string` | n/a | yes |
| [os\_type](#input\_os\_type) | The OS for the container group. Allowed values are Linux and Windows. | `string` | `"Linux"` | no |
| [resource\_group\_name](#input\_resource\_group\_name) | The name of the resource group in which to create the Container Group. | `string` | n/a | yes |
| [restart\_policy](#input\_restart\_policy) | Restart policy for the container group. Allowed values are Always, Never, OnFailure. | `string` | `"Never"` | no |
| [sku](#input\_sku) | Specifies the sku of the Container Group. Possible values are Confidential, Dedicated and Standard. | `string` | `"Standard"` | no |
| [subnet\_ids](#input\_subnet\_ids) | The subnet resource IDs for a container group. | `list(string)` | `[]` | no |
| [tags](#input\_tags) | Resource tags. | `map(string)` | `{}` | no |
## Outputs
| Name | Description |
|------|-------------|
| [id](#output\_id) | Id of the Azure Container Instance |
| [identity](#output\_identity) | List of identities assigned to the Azure Container Instance |
| [ip\_address](#output\_ip\_address) | Public IP address of the Azure Container Instance |
| [name](#output\_name) | Name of the Azure Container Instance |
## License
Apache 2 Licensed. For more information please see [LICENSE](https://github.com/data-platform-hq/terraform-azurerm-container-instance/blob/automated_readme/LICENSE)