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.
Ubuntu 12.04 Ubuntu 14.04
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 |
Include amazon-ecs-agent
in your node's run_list
:
{
"run_list": [
"recipe[amazon-ecs-agent::default]"
]
}
- Fork the repository on Github
- Create a named feature branch (i.e.
add-new-recipe
) - Write your change
- Write tests for your change (if applicable)
- Run the tests, ensuring they all pass
- Submit a Pull Request
Author:: Will Salt (williamejsalt@gmail.com)