package "unzip"

remote_file "/tmp/awscli-bundle.zip" do
  source "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip"
  mode '0755'
  action :create
end

execute 'unzipaws' do
  command 'unzip -o awscli-bundle.zip'
   cwd '/tmp'
 end

execute 'installaws' do
  command 'sudo ./awscli-bundle/install -i /usr/local/aws -b /usr/bin/aws'
  cwd '/tmp'
end

package "unzip"

remote_file "/tmp/awscli-bundle.zip" do
  source "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip"
  mode '0755'
  action :create
end

execute 'unzipaws' do
  command 'unzip -o awscli-bundle.zip'
   cwd '/tmp'
 end

execute 'installaws' do
  command 'sudo ./awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws'
  cwd '/tmp'
end

Revert "Put this in `/usr/bin` because the test box has a weird PATH var"
Revert "Put this in `/usr/bin` because the test box has a weird PATH var"

This reverts commit 5a802ee0a2aa68d172c1aca5b8819de9e6d74d54 [formerly 74bf92c9d52527f5736aad44cbe46606f10f329f].


Former-commit-id: 6bcbb39edca2943be3b7ed62c5606fffdf2def1d