itamae-plugin-recipe-awslogs
Plugin to support AWS CloudWatch Logs for Itamae.
NOTE
This plugin support only package installation.
For more detail, see Amazon CloudWatch Document.
Installation
Add this line to your application's Gemfile:
gem 'itamae-plugin-recipe-awslogs'
And then execute:
$ bundle
Or install it yourself as:
$ gem install itamae-plugin-recipe-awslogs
Usage
Recipe
package recipe
Only install awslogs package.
# your recipe
include_recipe 'awslogs::package'
config recipe
Generate config files for awslogs.
# your recipe
include_recipe 'awslogs::config'
Node
example for node.yaml
awslogs:
config:
cli:
aws_access_key_id: 'my_access_key_id'
aws_secret_access_key: 'my_secret_key'
region: 'us-east-1'
Currently, this gem does not support to configure /etc/awslogs/awslogs.conf
yet.
See CloudWatch Logs Agent Reference about /etc/awslogs/awslogs.conf
.
name | required | description |
---|---|---|
awslogs.config.cli.aws_access_key_id | optional | aws access_key_id (see AWS document) |
awslogs.config.cli.aws_secret_access_key | optional | aws secret_access_key |
awslogs.config.cli.region | required | region for CloudWatch Logs agent. |
enable recipe
Enable awslogs service.
# your recipe
include_recipe 'awslogs::enable'
Contributing
- Fork it ( https://github.com/[my-github-username]/itamae-plugin-recipe-awslogs/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
License
Copyright 2015 Leonis & Co.
MIT License