Created
July 24, 2019 00:18
-
-
Save Zhong-z/8fa8359549dc3918eeeb38eaef8f9ac3 to your computer and use it in GitHub Desktop.
Publicize S3 Object
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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