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 個月前檢視次數 155 次
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 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南