Planning to use pants to build docker images using pex as a "build environment" in a multi-stage build (we use python:3.10-slim + lambdaric). The images are deployed via aws cdk stacks.
Current thinking Is to just always invoke pants in the cdk app. Is there value in creating a aws cdk pants plugin instead? Not sure how the docker image targets could be inferred from cdk-construct code. Somehow addresses needs to be picked up.