Host Agent for AWS CodeDeploy
Ruby Shell Gherkin Batchfile
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.github Adding standard files Mar 28, 2018
bin Adding exponential backoff at install bin which downloads Agent files… May 16, 2018
certs [PATCH 22/49] CodeDeploy Local CLI fixes to support Windows May 18, 2017
conf Fix :max_revision config bug Apr 19, 2016
features Adds Lifecycle Event Tracking for an ongoing deployment May 11, 2018
init.d add dependency to systemd unit Nov 24, 2016
lib Revert "Add back in the verification of the certs by open SSL library" May 22, 2018
spec Adds Lifecycle Event Tracking for an ongoing deployment May 11, 2018
test Adds Lifecycle Event Tracking for an ongoing deployment May 11, 2018
vendor Fix version file log info message to include the version number. See #… Dec 7, 2017
.gitignore Adds Lifecycle Event Tracking for an ongoing deployment May 11, 2018
.rspec [PATCH 02/49] Moving code for codedeploy-local cli interface and vali… May 18, 2017
.travis.yml Bumping up ruby version to 2.3.0 Sep 29, 2016
CODE_OF_CONDUCT.md Adding standard files Mar 28, 2018
CONTRIBUTING.md Adding standard files Mar 28, 2018
Gemfile Adding an integration test Aug 5, 2015
LICENSE Remove appendix from LICENSE Nov 11, 2014
NOTICE Adding a NOTICE file Nov 12, 2014
README.md Changed integration tests to rely on default aws credentials file loc… Dec 6, 2017
Rakefile [PATCH 28/49] Create integration test for local codedeploy cli May 18, 2017
buildspec-agent-rake.yml Updating codebuild spec to include uploading an s3 artifact with the … May 11, 2018
codedeploy_agent-1.1.0.gemspec Allowing for concurrent deployment (multithreading the agent) May 11, 2018

README.md

AWS CodeDeploy Agent

Code Climate Build Status Coverage Status

Build Steps

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

Starting up the CodeDeploy Agent Locally for manual testing

bin/codedeploy-agent start

To stop it:

bin/codedeploy-agent stop

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
  • Startup the codedeploy agent on your host
  • A CodeDeploy deployment group with your host in it
  • A CodeDeploy deployment to your host.
  • Local Deployments to your host.

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.

Create your default aws credentials file in the default location (~/.aws/credentials on linux/mac and %USERPROFILE%.awscredentials on windows). Add your AWS access key, secret key, and optionally your session token there. The access key should have permission to create the above mentioned resources. You can also change the default region. To run the integration test execute

rake test-integration