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.

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ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ