aws / aws-codedeploy-agent

Host Agent for AWS CodeDeploy
https://aws.amazon.com/codedeploy
Apache License 2.0
328 stars 188 forks source link

[feature]Installing CodeDeploy without Registration #315

Closed lmayorga1980 closed 1 year ago

lmayorga1980 commented 2 years ago

I would like to install code-deploy-agent without registration and pre-bake it as an AMI. Are any extra flags supported during the MSI Installation?

Are there any CLI Flags to unregister and register?

mwjones-aws commented 2 years ago

Hi,

Could you give us a little more detail? What tool/framework are you using to create your AMI?

lmayorga1980 commented 2 years ago

We use hashicorp/packer to build AWS AMIs and we would like to perform this installation without having the Windows Service to automatically start. This way, users only have to start the Windows Service upon ec2-launch and don't have to wait much time for the installation.

t0shiii commented 1 year ago

I would suggest stopping the CodeDeploy Agent Service before creating the AMI. If you need to do this in a powershell script, please use the command Stop-Service -Name codedeployagent