Repository is archived
No commit activity in last 3 years
No release in over 3 years
CodeDeploy Agent is responsible for doing the actual work of deploying software on an individual EC2 instance.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 2.2.0
~> 2.5
~> 1.6
~> 1.8
~> 0.9
~> 1.1.0
~> 0.2.1
 Project Readme

AWS CodeDeploy Agent

Code Climate Build Status Coverage Status

Install and Run

$ gem install aws-codedeploy-agent
$ sudo codedeploy-agent

Install/Run as a SYSVINIT Service

$ sudo codedeploy-install
$ sudo service codedeploy-agent start

Uninstall/Remove as a SYSVINIT Service

$ sudo service codedeploy-agent stop
$ sudo codedeploy-uninstall

Build Steps

git clone https://github.com/aws/aws-codedeploy-agent.git
gem install bundler
cd aws-codedeploy-agent
bundle install
rake clean && rake

Integration Test

Please do the build steps mentioned above before running the integration test.

The integration test creates the following

  • An IAM role "codedeploy-agent-integ-test-deployment-role" if it doesn't exist
  • An IAM role "codedeploy-agent-integ-test-instance-role" if it doesn't exist
  • A CodeDeploy application
  • A CodeDeploy deployment group
  • An EC2 key pair "codedeploy-agent-integ-test-key" if it doesn't exist
  • An EC2 security group "codedeploy-agent-integ-test-sg" if it doesn't exist
  • An EC2 instance tagged with key "codedeploy-agent-integ-test-instance"
  • A CodeDeploy deployment on that ec2 instance.

It terminates the test ec2 instance and deletes the CodeDeploy application at the end of each test run. It also terminates any test ec2 instances before starting up the test.

Update the features/AwsCredentials.yml file with AWS access key and secret key. The access key should have permission to create the above mentioned resources. You can also change the default region and ami id if you want. To run the integration test execute

rake test-integration