cloudformation-coverage-roadmap icon indicating copy to clipboard operation
cloudformation-coverage-roadmap copied to clipboard

AWS::CodeDeploy::DeploymentConfig for Lambda

Open jonnekaunisto opened this issue 6 years ago • 2 comments

Scope of request

AWS::CodeDeploy::DeploymentConfig currently supports only creating a config for an EC2 deployment group. However it does not support creating one for Lambda/ECS.

This can also been seen in the CDK packages.

You can see here how CDK doesn't have a way to create a deployment preference for Lambda: https://github.com/aws/aws-cdk/blob/v1.67.0/packages/@aws-cdk/aws-codedeploy/lib/lambda/deployment-config.ts#L64

But here it exists for EC2: https://github.com/aws/aws-cdk/blob/v1.67.0/packages/@aws-cdk/aws-codedeploy/lib/server/deployment-config.ts#L109

Expected behavior

AWS::CodeDeploy::DeploymentConfig should include an option to create a new DeploymentConfig for Lambda/ECS. Possibly by including a fields for DeploymentType, Step and Interval

Links to existing API doc

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codedeploy-deploymentconfig.html

Category

Compute

jonnekaunisto avatar Oct 14 '20 01:10 jonnekaunisto

I have same problem

ajyuan avatar Oct 19 '20 03:10 ajyuan

https://github.com/aws/aws-cdk/blob/main/packages/@aws-cdk/aws-codedeploy/lib/lambda/deployment-config.ts https://github.com/aws/aws-cdk/blob/main/packages/%40aws-cdk/aws-codedeploy/lib/ecs/deployment-config.ts Cdk already support the Lambda and ECS now

xaoyuli avatar Nov 17 '22 23:11 xaoyuli