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.

Specify a path in the bucket

See original GitHub issue

Hi,

I know I can customize the bucket in which my code is stored with bucketName parameter. Is there a way to customize the path where the code is store in the bucket? It seems to be stored at the root but I would like it stored in a subfolder.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:6
  • Comments:12

github_iconTop GitHub Comments

3reactions
lcswillemscommented, Dec 24, 2020

Do you have a link to basepath? I can’t find any information about it.

Two use cases:

  1. I want to keep a copy of all my deployments without having to create a new bucket everytime.
  2. I do multiple simultaneous deployments on different stages.
2reactions
dphangcommented, Sep 22, 2021

Yes, I think now with CloudFront functions it’s easier to support a prefix path in S3 bucket. As we want to handle the static and _next/static without the overhead of a full Lambda (as it’s not needed since they map directly to S3 paths). I think we should be able to modify the URI to add the prefix to ensure it routes correctly to S3 bucket

Read more comments on GitHub >

github_iconTop Results From Across the Web

Solved: How can I specify S3 bucket folders/paths with Put...
Probably yes. A mostly unimportant thing here is that since S3 is really just a key value store the path delimiters are only...
Read more >
File paths in Amazon S3 - Media2Cloud - AWS Documentation
Media2Cloud AWS Solution Amazon S3 file paths. ... A web bucket that stores the static HTML, CSS, and JavaScript files for the web...
Read more >
python 3.x - Connecting to specific path in s3 - Stack Overflow
The error says: The specified bucket does not exist. This is because the s3_cli.Bucket('sub_folder2') wants the name of a Bucket, ...
Read more >
Customizing the Amazon S3 Bucket and File Path in SyncS3
You can also set a custom file path for the files. By default, SyncS3 places files into a folder within your bucket that...
Read more >
S3 keys are not file paths - alexwlchan
Although an S3 key looks a lot like a file path, they aren't always ... If you look at an S3 bucket, you...
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