1 Answer
- Newest
- Most votes
- Most comments
0
Hi Smotrov,
Typically CDK is meant for infrastructure as code, so building the image per se is not part of that.
What you can do is to provision native cloud pipelines in cdk, that allow you to build the images.
An example is code pipeline and code build where you can build a docker image: https://github.com/aws-samples/aws-cdk-examples/blob/master/python/codepipeline-docker-build/ReadMe.md
So if you wish to execute the building of the image with cdk, I d create a script that executes both cdk deploy and that triggers a code pipeline starts.
Hope it helps and fits your case
Relevant content
- asked a year ago
- AWS OFFICIALUpdated 10 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago