Select Badges

Select Supported Platforms

Select Status

RSS

m-awscli_scripts (10) Versions 1.0.0

AWS Cli Scripts Cookbook

Policyfile
Berkshelf
Knife
cookbook 'm-awscli_scripts', '= 1.0.0', :supermarket
cookbook 'm-awscli_scripts', '= 1.0.0'
knife supermarket install m-awscli_scripts
knife supermarket download m-awscli_scripts
README
Dependencies

m-awscli_scripts

Contains serveral scripts to help with executing awscli commands during chef
runs.

Install aws-cli

Install the aws-cli on a system.

Usage (v1)

include_recipe 'm-awscli_scripts::install_v1'

Usage (v2)

include_recipe 'm-awscli_scripts::install_v2'

S3_file - - Get files from s3 buckets easier

Note:

Example

s3_file '/etc/ssl/website.crt' do
  bucket 'website-secret-files'
  source 'website.crt'
end

Full Syntax

s3_file 'filename' do
  bucket   String            # Required
  source   String            # Required
  mode     String, Integer   # Optional
  owner    String, Integer   # Optional
  group    String, Integer   # Optional
  action   Symbol            # defaults to :create
end

Actions

:create              # Default, creates the file from s3. Overrides the file if it exists
:create_if_missing   # Creates the file from s3 unless it already exists, then nothing happens.
:remove              # Deletes the file

Properties

s3_file 'filename' do
  bucket    S3 bucket to pull source from
  source    Path to the file name in the s3 bucket
  mode      File mode to set on the file
  owner     Who should be the owner of the file
  group     What group should own the file
end