Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

AWS S3 forces creating a folder

I’m completely new to S3 and I’m trying to deploy an application.
I’m using this CLI command

aws s3 cp --recursive --acl public-read ./www s3://my_bucket123

./www is the build folder containing all the static files

a folder is created and inside it are all the files I deployed, I want the files to be outside of the folder and not inside

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

I’m using WSL as a command line tool on windows

Screenshot

>Solution :

Try:

aws s3 cp --recursive --acl public-read www/ s3://my_bucket123/

Or:

aws s3 sync --acl public-read www/ s3://my_bucket123/
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading