Back

Explore Courses Blog Tutorials Interview Questions
0 votes
1 view
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.3k points)

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'

Related questions

Want to get 50% Hike on your Salary?

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

0 votes
1 answer
Welcome to Intellipaat Community. Get your technical queries answered by top developers!

28.4k questions

29.7k answers

500 comments

94.1k users

Browse Categories

...