Skip to content

Instantly share code, notes, and snippets.

@Zhong-z
Created July 24, 2019 00:18
Show Gist options
  • Save Zhong-z/8fa8359549dc3918eeeb38eaef8f9ac3 to your computer and use it in GitHub Desktop.
Save Zhong-z/8fa8359549dc3918eeeb38eaef8f9ac3 to your computer and use it in GitHub Desktop.
Publicize S3 Object
client = Aws::S3::Client.new(access_key_id: 'xxx', secret_access_key: 'xxx', region: 'ap-southeast-2')
client.put_object_acl({bucket: 'bucket_name', key: 'object_key', acl: 'public-read'})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment