cookbook 'alphard-aws', '= 1.0.0'
alphard-aws (2) Versions 1.0.0 Follow0
Installs/Configures and Provides helpers definitions for awscli
cookbook 'alphard-aws', '= 1.0.0', :supermarket
knife supermarket install alphard-aws
knife supermarket download alphard-aws
alphard-aws Cookbook
This cookbook provides a resource wrapper for awscli command line tool (aws).
It also installs:
- a definition that registers an ec2 instance to an elb
- a definition that adds tag to an ec2 instance
- a definition that deletes s3 buckets
- a ohai plugin helper that compute the ec2 region from ec2 placement zone availability.
Requirements
- Ubuntu 14.04
Chef
- Chef 12.0 or later
Packages
-
ohai
- alphard-aws needs ohai to install the custom plugin ec2_region that compute automatically the ec2 region -
poise-python
- alphard-aws needs poise-python to install awscli
Attributes
General
-
['alphard']['aws']['user']
- the user used to install aws cli and run commands with -
['alphard']['aws']['group']
- the group used to install aws cli and run commands with -
['alphard']['aws']['access_key']
- the access key used for AWS_ACCESS_KEY_ID -
['alphard']['aws']['secret_key']
- the secret key used for AWS_SECRET_ACCESS_KEY -
['alphard']['aws']['region']
- the region used for AWS_DEFAULT_REGION -
['alphard']['aws']['output']
- the output used for AWS_DEFAULT_OUTPUT -
['alphard']['aws']['verbose']
- if true resource will display awscli command output and failure in console.
Awscli
-
['alphard']['aws']['awscli']['version']
- the awscli version to install, upgrade or downgrade
Cloudformation
-
['alphard']['aws']['cloudformation']['region']
- the awscli version to install, upgrade or downgrade - `['alphard']['aws']['cloudformation']['stacks']['default']['template'] - the cloudformation stacks used by environment
Usage
alphard-aws::default
Just include alphard-aws
in your node's run_list
:
{ "name":"my_node", "run_list": [ "recipe[alphard-aws]" ] }
License
Copyright 2009-2016, Hydra Technologies, Inc
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Authors
- Frédéric Nowak - frederic.nowak@alphard.io
Dependent cookbooks
ohai >= 0.0.0 |
poise-python >= 0.0.0 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
Foodcritic Metric
1.0.0 failed this metric
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/161719857151b46a3a44f697/alphard-aws/definitions/cloudformation_update.rb:21
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/161719857151b46a3a44f697/alphard-aws/definitions/cloudformation_update.rb:22
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/161719857151b46a3a44f697/alphard-aws/definitions/cloudformation_update.rb:29
FC014: Consider extracting long ruby_block to library: /tmp/cook/161719857151b46a3a44f697/alphard-aws/definitions/cloudformation_update.rb:78
FC014: Consider extracting long ruby_block to library: /tmp/cook/161719857151b46a3a44f697/alphard-aws/definitions/s3_delete_buckets.rb:19
FC015: Consider converting definition to a LWRP: /tmp/cook/161719857151b46a3a44f697/alphard-aws/definitions/cloudformation_update.rb:1
FC015: Consider converting definition to a LWRP: /tmp/cook/161719857151b46a3a44f697/alphard-aws/definitions/ec2_tag.rb:1
FC015: Consider converting definition to a LWRP: /tmp/cook/161719857151b46a3a44f697/alphard-aws/definitions/elb_register.rb:1
FC015: Consider converting definition to a LWRP: /tmp/cook/161719857151b46a3a44f697/alphard-aws/definitions/s3_delete_buckets.rb:1
FC019: Access node attributes in a consistent manner: /tmp/cook/161719857151b46a3a44f697/alphard-aws/definitions/cloudformation_update.rb:21
FC019: Access node attributes in a consistent manner: /tmp/cook/161719857151b46a3a44f697/alphard-aws/definitions/cloudformation_update.rb:22
FC048: Prefer Mixlib::ShellOut: /tmp/cook/161719857151b46a3a44f697/alphard-aws/definitions/cloudformation_update.rb:91
FC048: Prefer Mixlib::ShellOut: /tmp/cook/161719857151b46a3a44f697/alphard-aws/definitions/s3_delete_buckets.rb:31
FC048: Prefer Mixlib::ShellOut: /tmp/cook/161719857151b46a3a44f697/alphard-aws/providers/aws.rb:57
1.0.0 failed this metric
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/161719857151b46a3a44f697/alphard-aws/definitions/cloudformation_update.rb:22
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/161719857151b46a3a44f697/alphard-aws/definitions/cloudformation_update.rb:29
FC014: Consider extracting long ruby_block to library: /tmp/cook/161719857151b46a3a44f697/alphard-aws/definitions/cloudformation_update.rb:78
FC014: Consider extracting long ruby_block to library: /tmp/cook/161719857151b46a3a44f697/alphard-aws/definitions/s3_delete_buckets.rb:19
FC015: Consider converting definition to a LWRP: /tmp/cook/161719857151b46a3a44f697/alphard-aws/definitions/cloudformation_update.rb:1
FC015: Consider converting definition to a LWRP: /tmp/cook/161719857151b46a3a44f697/alphard-aws/definitions/ec2_tag.rb:1
FC015: Consider converting definition to a LWRP: /tmp/cook/161719857151b46a3a44f697/alphard-aws/definitions/elb_register.rb:1
FC015: Consider converting definition to a LWRP: /tmp/cook/161719857151b46a3a44f697/alphard-aws/definitions/s3_delete_buckets.rb:1
FC019: Access node attributes in a consistent manner: /tmp/cook/161719857151b46a3a44f697/alphard-aws/definitions/cloudformation_update.rb:21
FC019: Access node attributes in a consistent manner: /tmp/cook/161719857151b46a3a44f697/alphard-aws/definitions/cloudformation_update.rb:22
FC048: Prefer Mixlib::ShellOut: /tmp/cook/161719857151b46a3a44f697/alphard-aws/definitions/cloudformation_update.rb:91
FC048: Prefer Mixlib::ShellOut: /tmp/cook/161719857151b46a3a44f697/alphard-aws/definitions/s3_delete_buckets.rb:31
FC048: Prefer Mixlib::ShellOut: /tmp/cook/161719857151b46a3a44f697/alphard-aws/providers/aws.rb:57