Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS CodeDeploy redeployment from command line

Is it possible to retry/redeploy a previously successful deployment through command line? I know a list of deployments can be fetched from command line using aws deploy list-deployments but I didn't find any option to rerun the deployment using deployment-id returned from this command. There is an option to retry a previously run deployment from console though.

like image 510
SVashisth Avatar asked Oct 21 '25 04:10

SVashisth


1 Answers

Re-deployment is simply based on creating new-deployment using a previous version of your application. Unfortunately, there is no special redeploy command for that.

In the docs there is example how to redeploy sample project:

aws deploy create-deployment --application-name HelloWorld_App --deployment-config-name CodeDeployDefault.OneAtATime --deployment-group-name HelloWorld_DepGroup --s3-location bucket=codedeploydemobucket,bundleType=zip,key=HelloWorld_App.zip
like image 185
Marcin Avatar answered Oct 22 '25 22:10

Marcin