Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add container instances for API #130

Merged
merged 1 commit into from
Jul 18, 2023
Merged

Conversation

eternaltyro
Copy link
Contributor

  • Add container instances for API
  • Modify existing subnet to delegate to ContainerInstances
  • Add KeyVault and ContainerRegistry endpoint access to subnet
  • Add necessary variables for the container group

- Add container instances for API
- Modify existing subnet to delegate to ContainerInstances
- Add KeyVault and ContainerRegistry endpoint access to subnet
- Add necessary variables for the container group
@eternaltyro eternaltyro self-assigned this Jul 18, 2023
@eternaltyro eternaltyro merged commit c2ba639 into develop Jul 18, 2023
@eternaltyro eternaltyro deleted the enhance/container-instances branch July 18, 2023 13:53
Comment on lines +1 to +26
resource "azurerm_container_group" "app" {
name = join("-", [var.project_name, var.deployment_environment])
resource_group_name = azurerm_resource_group.raw-data.name
location = azurerm_resource_group.raw-data.location

ip_address_type = "Private"
subnet_ids = [azurerm_subnet.raw-data-containers.id]
os_type = "Linux"

container {
name = "api"
image = lookup(var.container_images, "api")
cpu = "0.5"
memory = "1.5"

ports {
port = 8000
protocol = "TCP"
}

environment_variables = var.container_envvar
}

tags = {
}
}

Check failure

Code scanning / checkov

Ensure Container Instance is configured with managed identity Error

Ensure Container Instance is configured with managed identity
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant