parent
6bad4fb41f
commit
808cd318ee
@ -0,0 +1,2 @@
|
||||
.*env
|
||||
*.csv
|
@ -0,0 +1,12 @@
|
||||
require 'aws-sdk'
|
||||
|
||||
bucket = ENV.fetch('CPI_FEED_AWS_BUCKET')
|
||||
key = ARGV.first || ENV.fetch('CPI_FEED_AWS_KEY')
|
||||
|
||||
puts Aws::S3::Resource.new.bucket(bucket).object(key).put(
|
||||
body: $stdin.read
|
||||
)
|
||||
|
||||
puts Aws::S3::Client.new.put_object_acl(
|
||||
bucket: bucket, key: key, acl: 'public-read'
|
||||
)
|
Loading…
Reference in new issue