'Best practice to deploy -> development cycle when there are two lambda in cdk
I have two lambda in cdk file.
With this source code cdk deploy do the first deployment, and after that,
Everytime do cdk deploy the new two lambda code are deployed.
However is it possible to deploy only one lambda?
What is the best practice for this case?
const msgLambda = new lambda.DockerImageFunction(this, "firstLambda", {
functionName: `sg-mg-lm`,
code: lambda.DockerImageCode.fromImageAsset(
"first",
{
"file": "Dockerfile.first"
}
),
environment:{
}
});
const wkLambda = new lambda.DockerImageFunction(this, "secondLambda", {
functionName: `sg-wk-lm`,
code: lambda.DockerImageCode.fromImageAsset(
"second",
{
"file": "Dockerfile.second"
}
),
environment:{
}
});
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
