Which CDK class or function can be used to set the program source for CodeDeploy?

0

Hi,I want to use CDK to implement the process of operating CodeDeploy on the management console, and use CodeDeploy to deploy the program to a specified EC2 instance, but I can't find a definition of where the program is stored? For example, if my program data is on S3, how do I specify it?

const codedeployApp = new codedeploy.ServerApplication
const deploymentGroup = new codedeploy.ServerDeploymentGroup
const deploymentConfig = new codedeploy.ServerDeploymentConfig

I didn't find any settings for storage locations in the three classes above.

Also, is there a setting that can replace the contents of the AppSpec.yml?

Thanks for help.

tong_K
已提问 4 个月前154 查看次数
1 回答
0
已接受的回答

Hello.

I don't think you can configure automatic deployment with CodeDeploy alone.
Automatic deployment is possible by combining it with CodePipeline.
Code storage locations (GitHub, CodeCommit, etc.) are specified in CodePipeline.
https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.pipelines.CodePipeline.html

profile picture
专家
已回答 4 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则