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 Antwort
0
Akzeptierte Antwort

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
EXPERTE
beantwortet vor 4 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen