Creating Buckets
Important
These instructions apply to all users, whether using Cyberduck, SFTPGo, the AWS CLI, or another S3-compatible client. The process is the same for everyone: upload a text file containing your bucket names to the
duracloud-$ID-requestbucket under thebucketsfolder. Instructions for each client are provided in the Steps section below.
Create a Bucket
To create a bucket, you must create a text file (.txt) containing the names of up to five buckets you want to create.
Naming Rules
- Bucket names are automatically prefixed with the stack name — do not include the stack name in the file.
- Each bucket name must be entered on its own line.
- Bucket names may contain only alphanumeric characters and
-. - Bucket names must not begin or end with
-. - Bucket names must be no more than 63 characters total, including:
- The stack name prefix (
duracloud-$ID) - 5 reserved characters for the
-replsuffix
- The stack name prefix (
Tip
Practically, this means your names should be no more than: 63 - 5 - (length of your duracloud-$ID)
Public Bucket Naming
To create a publicly accessible bucket, the name must end with -public.
- This subtracts an additional 7 characters from the maximum length.
Reserved Prefixes and Suffixes
The following cannot be used in bucket names:
duracloud-— already included as the foremost prefix-logs— used for access logging buckets-managed— used for system-managed buckets (reports, logs, and other system data appear here)-repl— used for replication target buckets (Amazon Glacier replication)-request— used for bucket request files
Steps
-
Open a text editor (such as Notepad or Notepad++) and create a file containing your bucket names, one per line. Save it as a
.txtfile. -
Upload the file to the
duracloud-$ID-requestbucket, inside thebucketsfolder.- If the
bucketsfolder does not exist then create it first. - Buckets can only be created from files uploaded to the
bucketsfolder in the request bucket.
- If the
Cyberduck
- Connect to your S3 account (see Connecting to S3).
- Navigate to the
duracloud-$ID-requestbucket. - If a
bucketsfolder does not exist, create one: Action → New Folder. - Open the
bucketsfolder and drag your.txtfile into the Cyberduck window, or click Upload to browse for it. - Cyberduck will show a transfer log confirming the upload.
Tip
When re-using the same file with updated bucket names (Step 8 below), Cyberduck may ask you to confirm overwriting the existing file. Confirm to proceed.
SFTPGo
- Log in to the SFTPGo web interface (see Connecting to S3).
- Navigate to your home folder. You will see
managedandpublicfolders — do not upload to these. Instead, navigate back to the root or look for arequestfolder corresponding toduracloud-$ID-request. - If a
bucketsfolder does not exist inside the request area, click New Folder to create it. - Open the
bucketsfolder, then click Upload Files or drag your.txtfile into the upload area. - Click Save to complete the upload.
AWS CLI
aws s3 cp mybuckets.txt s3://duracloud-$ID-request/buckets/mybuckets.txt
- The file will be processed in the background and an attempt will be made to create each bucket.
- Processing normally takes 0–2 minutes.
- A report file will be uploaded to the
feedbackfolder inside the-managedbucket, providing details about the outcome. - Review the log when it becomes available.
- Refresh your client view or reconnect to S3.
- Successfully created buckets will now be visible.
- Each new bucket will have an associated replication bucket with a
-replsuffix. - Replication buckets are list-only (files cannot be downloaded).
- The newly created buckets are now usable, and files can be uploaded.
- To create more buckets:
- Re-use and re-upload the same file with new bucket names, or
- Create and upload an entirely new file. Both approaches work.
Troubleshooting
- If you do not see any new buckets created, check the logs in the
$ID-managedbucketfeedbackfolder for error messages. - If you attempt to create multiple buckets at one time and one bucket has an error (for example, the name is too long or you attempted to create more than five buckets), none of the buckets will be created. You must correct the issue and start again for all buckets.