Skip to content
Chef resource for downloading files
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
libraries
providers
recipes
resources
test
.gitignore
.kitchen.docker.yml
.kitchen.yml
.rubocop.yml
.travis.yml
Berksfile
Gemfile
LICENSE
README.md
Rakefile
chefignore
metadata.rb

README.md

remote_or_s3_file

Cookbook Version Build Status

This cookbook provides the resource remote_or_s3_file.

The provider remote_or_s3_file acts just like remote_file, except when you use an s3://... uri, then the remote_or_s3_file will act like the aws_s3_file provider.

Usage

Include the default recipe to ensure the aws-sdk is installed in Chef. Only needed if you're using an aws cookbook version of less than 3.0.

include_recipe 'remote_or_s3_file'

Then to download to a file from a non-S3 bucket

remote_or_s3_file 'example.zip' do
  source 'http://example.com/example.zip'
end

Or from an S3 bucket

remote_or_s3_file 'example.zip' do
  source 's3://example/example.zip'
end
You can’t perform that action at this time.