Skip to content
This repository has been archived by the owner on Sep 5, 2023. It is now read-only.

JCotton1123/chef-amazon-ecs-agent

 
 

Repository files navigation

amazon-ecs-agent-cookbook

This is an enhanced fork of the original cookbook.

This cookbook sets up the amazon ecs agent into a docker container on ubuntu. You can run it in test kitchen with the default-ecs suite, and relevant environment variabes, and perhaps a kitchen local.yml for vpc settings (subnet_id, availability_zone, security_group_ids, interface) if needed.

Supported Platforms

Ubuntu 12.04 Ubuntu 14.04

Attributes

Key Type Description Default
node['amazon-ecs-agent']['log_folder'] String the log folder for the host /var/log/ecs
node['amazon-ecs-agent']['log_level'] String the log level for the agent info
node['amazon-ecs-agent']['cluster'] String the ecs cluster name to attach to default
node['amazon-ecs-agent']['aws_access_key_id'] String Your aws access key with ecs privs nil
node['amazon-ecs-agent']['aws_secret_access_key'] String The secret access key nil

Usage

amazon-ecs-agent::default

Include amazon-ecs-agent in your node's run_list:

{
  "run_list": [
    "recipe[amazon-ecs-agent::default]"
  ]
}

Testing (on EC2)

  • Create an IAM role that supports ECS registration
  • Create an ECS cluster (or use 'default')
export AWS_SSH_KEY_ID='MyKeyName'
export AWS_CREDENTIAL_PROFILE='Profile'
export AWS_IAM_PROFILE='ECSAgent'

kitchen test default-ec2

Contributing

  1. Fork the repository on Github
  2. Create a named feature branch (i.e. add-new-recipe)
  3. Write your change
  4. Write tests for your change (if applicable)
  5. Run the tests, ensuring they all pass
  6. Submit a Pull Request

License and Authors

Author:: Will Salt (williamejsalt@gmail.com)

About

chef cookbook for the amazon container service agent

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%