question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

bucket names can't have '/' in them?

See original GitHub issue

Trying to get object from Bucket='some-syndication/some-directory' it returns that the '/'doesn’t match the parameter validation.

ParamValidationError: Parameter validation failed:
Invalid bucket name "some-syndication/some-directory": Bucket name must match the regex "^[a-zA-Z0-9.\-_]{1,255}$"

However if I generate a presigned url with the same bucket name, I get the URL and can follow that link to the file. Is this a bug or purposeful?

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:14 (4 by maintainers)

github_iconTop GitHub Comments

12reactions
JordonPhillipscommented, Nov 2, 2015

/abc is a Key, not a Bucket. If your bucket’s name is bucket-name you access it with s3.Bucket('bucket-name'). If you want to get the object bucket-name/abc then you use s3.Bucket('bucket-name').Object('abc')

3reactions
rayluocommented, Jun 14, 2017

Just a side note for everyone who chimed in after this issue was closed: you’d better create a separated new issue for your case, and optionally mentioned this issue in your new issue. The reason for this suggestion is that, when there are 55 open issues (as of today), your comments in a closed thread won’t receive much attention.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Amazon S3 bucket naming requirements - AWS CloudTrail
The Amazon S3 bucket that you use to store CloudTrail log files must have a name that conforms with naming requirements for non-US...
Read more >
What are valid S3 bucket names? - Flexera CMP Docs
Bucket names cannot contain periods - Due to our S3 client utilizing SSL/HTTPS, Amazon documentation indicates that a bucket name cannot contain a...
Read more >
Simple Rules for AWS S3 Bucket Naming and Restrictions
“The bucket name can be between 3 and 63 characters long, and can contain only lower-case characters, numbers, periods, and dashes.” — AWS ......
Read more >
DNS Compliant S3 Bucket Names
If you need to use your Amazon S3 buckets over SSL, using periods (".") for their names will trigger certificate mismatch errors, therefore...
Read more >
About Cloud Storage buckets
Bucket names must contain 3-63 characters. Names containing dots can contain up to 222 characters, but each dot-separated component can be no longer...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found