I am trying to create an Azure Container Instance with Debezium Connect using Terraform. When I use the Debezium Connect version 1.6.0, the container group deploys successfully. However, when I try to use the latest version (2.2) or the "latest" tag, I encounter the following error:
Error: creating Container Group (Subscription:
"subscription_id>" Resource Group Name:
"Resource_Name" Container Group Name: "ci-example-debezium"):
performing ContainerGroupsCreateOrUpdate:
containerinstance.ContainerInstanceClient#ContainerGroupsCreateOrUpdate:
Failure sending request: StatusCode=0 — Original Error:
Code="InaccessibleImage" Message="The image ‘debezium/connect:2.2’ in
container group ‘ci-example-debezium’ is not accessible. Please check
the image and registry credential."
resource "azurerm_container_group" "debezium" {
# Configuration...
containers {
name = "debezium"
image = "debezium/connect:2.2"
# Rest of the container configuration...
}
# Rest of the azurerm_container_group configuration...
}
I’ve verified that the image is available on Docker Hub: https://hub.docker.com/r/debezium/connect/tags
Why am I encountering this error with the latest version of Debezium Connect? Are there any changes or additional configurations required for using version 2.2 or the "latest" tag?
Any help would be greatly appreciated.
2
Answers
I was able to use "quay.io/debezium/connect:latest" and that worked
https://debezium.io/blog/2023/04/25/container-images-quayio/
As you removed part of the configuration, I think it’s missing a piece where you specify the credentials to authenticate on Docker hub:
Your tf file will look more or less like this: