aws / aws-cdk

The AWS Cloud Development Kit is a framework for defining cloud infrastructure in code
https://aws.amazon.com/cdk
Apache License 2.0
11.51k stars 3.85k forks source link

CodeDeploy: L2 constructor to perform ECS deployment with CodeDeploy #25138

Open kodai305 opened 1 year ago

kodai305 commented 1 year ago

Describe the feature

The function is to implement CodeDeploy deployment ("AWS::CodeDeploy::Deployment") with an L2 constructor.

Use Case

It is useful in cases where you want to perform CodeDeploy deployment using only CDK without CodePipeline.

Currently, "AWS::CodeDeploy::Deployment" in CloudFormation must be implemented using the L1 constructor, which is a bit cumbersome for organizations that use the L2 constructor for the entire deployment.

If this can be achieved, it will be very convenient to deploy from a local PC or external CD environment using only "cdk deploy".

Proposed Solution

Implement a class method that can implement "AWS::CodeDeploy::Deployment" in the L2 constructor.

Other Information

No response

Acknowledgements

CDK version used

2.72.1

Environment details (OS name and version, etc.)

OS X

pahud commented 1 year ago

Thank you for your PR and use case.