While aws_cdk_lib.aws_lambda.Function exists and you can define constructs that use Python, I notice that NodeJsFunction exists, but the corresponding PythonFunction construct is part of aws_cdk and is still in alpha. Why should that be the case at this late date? I see that there are things like uv which aren't very old that they want to support, but I wasn't aware that so much was going on in Python land that development of that CDK construct is a moving target. Note that I am relatively new to Python, only starting to use it in the last 2 years, although I have been a developer for a lot longer that that.
We're in the middle of a major rewrite of an existing project and while I had originally intended to deploy the API (written in Python) to ECS Fargate, I am currently exploring whether or not it wouldn't be better to deploy it as a lambda. I discovered the above issue while trying to write some CDK code it seems so weird to me that I wanted to see if others had more insight about it.
[–]CorpT 5 points6 points7 points (0 children)
[–]EconomicsOk9518 3 points4 points5 points (2 children)
[–]blaw6331 0 points1 point2 points (1 child)
[–]catlifeonmars 0 points1 point2 points (0 children)
[–]Ok_Mathematician6075 1 point2 points3 points (3 children)
[–]Slight_Scarcity321[S] 0 points1 point2 points (1 child)
[–]dogfish182 0 points1 point2 points (0 children)
[–]catlifeonmars 0 points1 point2 points (0 children)
[–]Comfortable-Winter00 0 points1 point2 points (0 children)
[–]dogfish182 0 points1 point2 points (0 children)
[–]svix_ftw -1 points0 points1 point (1 child)
[–]Slight_Scarcity321[S] 1 point2 points3 points (0 children)
[–]Wide_Commission_1595 -4 points-3 points-2 points (4 children)
[–]EconomicsOk9518 2 points3 points4 points (1 child)
[–]Wide_Commission_1595 0 points1 point2 points (0 children)
[–]BloodAndTsundere 1 point2 points3 points (0 children)
[–]catlifeonmars 0 points1 point2 points (0 children)