I deploy the image to a containerized Lambda function with arm64 architecture and it doesn't work. Switching to x86_x64 architecture works. In fact, if I run the built image locally, it works (I use Ubuntu 22.04.3 LTS on WSL2 with x86_x64 architecture).
It's not clear to me if this Terraform provider uses BuildKit to create a multi-platform image. If so, I guess it should accept TARGETPLATFORM as an ARG.
Community Note
Terraform (and docker Provider) Version
cdktf v0.20.1
kreuzwerker/docker v3.0.2
Affected Resource(s)
docker_image
Terraform Configuration Files
main.ts
Dockerfile
Debug Output
Panic Output
Expected Behaviour
Actual Behaviour
I deploy the image to a containerized Lambda function with
arm64
architecture and it doesn't work. Switching tox86_x64
architecture works. In fact, if I run the built image locally, it works (I use Ubuntu 22.04.3 LTS on WSL2 withx86_x64
architecture).It's not clear to me if this Terraform provider uses BuildKit to create a multi-platform image. If so, I guess it should accept
TARGETPLATFORM
as anARG
.Steps to Reproduce
terraform apply
Important Factoids
References
0000