"Setup_AWS_CLI_and_S3.md" - problem creating an s3 folder

0

I was trying to follow steps here:

https://github.com/aws/aws-fpga/blob/master/Vitis/docs/Setup_AWS_CLI_and_S3_Bucket.md

But this suggested step failed for me:

$ aws s3 mb s3://<bucket-name>/<dcp-folder-name> # Create folder for your tarball files

Prior to this, I had done this step successfully:

aws s3 mb s3://gurce-fpga-afi

But then I tried the next-suggested line, with:

aws s3 mb s3://gurce-fpga-afi/dcp-tar
make_bucket failed: s3://gurce-fpga-afi/dcp-tar An error occurred (BucketAlreadyOwnedByYou) when calling the CreateBucket operation: Your previous request to create the named bucket succeeded and you already own it.

I'm starting to suspect that the 'aws s3 mb' command is just for making a bucket, and not for creating a folder.

From what I've learnt about s3 buckets so far, the folder is more of an abstraction that doesn't genuinely exist.

So perhaps I should skip this step and do the steps below it? (And that will implicitly create such a folder?)

$ touch FILES_GO_HERE.txt # Create a temp file
$ aws s3 cp FILES_GO_HERE.txt s3://<bucket-name>/<dcp-folder-name>/ # Which creates the folder on S3

Ok, I tried this, and yep, it seemed to work:

aws s3 cp FILES_GO_HERE.txt s3://gurce-fpga-afi/dcp-tar/

...but still, it seems odd to have that failing step in the instructions, should it be removed?

Gurce
gefragt vor 3 Jahren320 Aufrufe
1 Antwort
0

Hello,

That's correct, calling s3 mb a second time will not work. Even the following won't work as intended as it just creates the bucket and not the object under the bucket:

aws s3 mb s3://<bucket-name>/<logs-folder-name> 

I'll update the incorrect instructions right away. Thanks for bringing it to our attention!

-Deep

Deep_P
beantwortet vor 3 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen