Permalink
Browse files

[DOC] Added info about using IAM roles instead of AWS access tokens

  • Loading branch information...
1 parent 01f802f commit 17c0b16ded4072092be88c8d762e7613a7de1985 @karmi karmi committed Mar 1, 2013
Showing with 8 additions and 2 deletions.
  1. +2 −0 README.markdown
  2. +2 −0 attributes/aws.rb
  3. +4 −2 libraries/create_ebs.rb
View
@@ -30,6 +30,8 @@ If you include the `elasticsearch::aws` recipe, the
[AWS Cloud Plugin](http://github.com/elasticsearch/elasticsearch-cloud-aws) will be installed on the node,
allowing you to use the _Amazon_ AWS-related features (node auto-discovery, etc).
Set your AWS credentials either in the "elasticsearch/aws" data bag, or directly in the role/node configuration.
+Instead of using AWS access tokens, you can create the instance with a
+[IAM role](http://aws.amazon.com/iam/faqs/#How_do_i_get_started_with_IAM_roles_for_EC2_instances).
If you include the `elasticsearch::data` and `elasticsearch::ebs` recipes, an EBS volume will be automatically
created, formatted and mounted so you can use it as a local gateway for _Elasticsearch_.
View
@@ -20,6 +20,8 @@
# discovery:
# type: ec2
#
+# Instead of using AWS access tokens, you can create the instance with a IAM role.
+# See: http://aws.amazon.com/iam/faqs/#How_do_i_get_started_with_IAM_roles_for_EC2_instances
default.elasticsearch[:plugins][:aws][:version] = '1.9.0'
View
@@ -3,8 +3,10 @@ module Extensions
# Creates an EBS volume based on passed parameters and attaches it to the instance
# via the [Fog](http://rubydoc.info/gems/fog/Fog/Compute/AWS/Volume) library.
#
- # The credentials for accessing AWS API are loaded from `node.elasticsearch.cloud`,
- # you need to provide volume properties such as _size_ in the `params[:ebs]` hash.
+ # The credentials for accessing AWS API are loaded from `node.elasticsearch.cloud`.
+ # Instead of using AWS access tokens, you can create the instance with a IAM role.
+ #
+ # You need to provide volume properties such as _size_ in the `params[:ebs]` hash.
#
# If `params[:snapshot_id]` is passed, the volume will be created from
# the corresponding snapshot.

0 comments on commit 17c0b16

Please sign in to comment.