Back

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

I want to create a folder in S3 bucket from Ec2 instance. I tried the put object but it's not working. Is there any way of creating a folder on s3 from ec2 instance using cli.

1 Answer

0 votes
by (44.4k points)

You don't need to create them separately when you try this and if there are no folders, S3 will automatically create it for you.

aws s3 cp ./practice s3://yourBucketName/foldername/subfolder

Related questions

0 votes
1 answer

Want to get 50% Hike on your Salary?

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

+1 vote
1 answer

Browse Categories

...