Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in AWS by (19.1k points)

I would like to update the S3 bucket with the new content(create a folder within a bucket). What is the --expires date format. I didn't find any examples using AWS CLI on google. Can someone please help me on this thing?

Something like this:

aws s3 sync $backup_home s3://backup/$app-backup/$app-$DATE --expires '$DATE'

1 Answer

0 votes
by (44.4k points)
edited by

aws s3 sync expects GMT ISO 8601 datetime string. similar to -expires option. Something like this will work:

aws s3 sync $backup_home s3://backup/$app-backup/$app-$DATE --expires '2016-06-14T00:00:00Z'

If you are keen to learn about the various AWS skills then this AWS Course page availed by Intellipaat is the right course for you. This course will help you learn to master AWS skills and ace the AWS certification exam! 

Related questions

Want to get 50% Hike on your Salary?

Learn how we helped 50,000+ professionals like you !

0 votes
2 answers

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...