• Skip to main content

Uly.me

cloud engineer

  • Home
  • About
  • Archives

object

AWS S3 Make Object Public

October 21, 2020

Copy object or file to S3 bucket.

aws s3 cp filename.ext s3://bucketname/ --profile your-profile

aws s3 cp filename.ext s3://bucketname/ --profile your-profile

To make it publicly available, run this command.

aws s3api put-object-acl \
--bucket bucket-name \
--key filename.ext \
--acl public-read \
--profile your-profile

aws s3api put-object-acl \ --bucket bucket-name \ --key filename.ext \ --acl public-read \ --profile your-profile

Filed Under: Cloud Tagged With: aws, cli, object, public, s3, s3api

AWS CLI Restore Object from S3 Glacier

June 26, 2019

How to restore an object from Amazon S3 Glacier via the AWS CLI.

aws s3api restore-object \
--bucket awsexamplebucket \
--key dir1/example.obj \
--restore-request '{"Days":25,"GlacierJobParameters":{"Tier":"Standard"}}'

aws s3api restore-object \ --bucket awsexamplebucket \ --key dir1/example.obj \ --restore-request '{"Days":25,"GlacierJobParameters":{"Tier":"Standard"}}'

Filed Under: Cloud Tagged With: aws, cli, glacier, object, restore, s3

  • Home
  • About
  • Archives

Copyright © 2023