Skip to content

intuit-archive/aws_cli-cookbook

Repository files navigation

Build Status

!!! This project has been deprecated. We recommend you search the Chef Supermarket for a supported alternative !!!

aws_cli-cookbook cookbook

Installs AWS command line tools via AWS CLI Omnibus package

Requirements

  • Chef 10.x

Platform:

  • CentOS 6.x
  • RHEL 6.x

Usage

Add the aws_cli cookbook to your role/run_list.

Attributes

default

node['aws_cli']['name'] - Name of the aws_cli package

node['aws_cli']['version'] - Version of aws_cli to install

Recipes

default

Installs AWS CLI rpm.

LWRPs

update_cname

Adds or updates a CNAME entry in the Route53 specified zone.

attach_ebs

Attach EBS Volume

Route53 CNAME

Actions:

  • default action: :update_cname
  • :update_cname adds or updates a CNAME entry for the hostname value in the specified domain and hosted zone id

required LWRP attributes:

record - Name of the CNAME record to create/update. (:name attribute)

hostname - CNAME Record Hostname Value.

domain - Route53 Hosted Zone Domain Name Value

hosted_zone_id - Route53 Hosted Zone ID

region - AWS region

optional

change_type - UPSERT (Default) | CREATE | DELETE

ttl - 60 (Default)

record_type - CNAME (Default) Currently only supports cnames

Example Add Route53 CNAME Record

include_recipe 'aws_cli'

aws_cli_update_cname  "mydb-record" do
  hostname        "ip-1.2.3.4.us-west-1.compute.internal"
  domain          "myapp.com"
  region          "us-west-1"
  hosted_zone_id  "Z234567"
end

Attach EBS Volume

Actions:

  • default action: :attach_ebs
  • :attach_ebs attach an existing ebs volume to an instance.

required LWRP atributes:

volume_id - EBS volume ID (:name attribute)

instance_id - Instance id to attach volume to

region - AWS region

optional

device - "/dev/xvdh" (Default)

Example Attach EBS Volume

include_recipe 'aws_cli'

aws_cli_attach_ebs  "vol-123456" do
  instance_id       "i-1234567"
  region            "us-west-1"
  device            "/dev/xvdh"
end

Author

  • Capen Brinkley (@capen)
  • Grant Hoffman (@grantleehoffman)

About

Installs AWS command line tools via Omnibus package (https://github.com/intuit/omnibus-aws_cli)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 6

Languages