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?