Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

πŸ‘©β€πŸ’» Documentation Request: Uploading a static website from e.g GitHub #3818

Open
Fohlen opened this issue Oct 9, 2024 · 1 comment

Comments

@Fohlen
Copy link

Fohlen commented Oct 9, 2024

Summary

Adding a guide how to use the AWS S3 command line correctly to upload a static website to be able to host e.g SvelteKit on Edge Services. An example GitHub action can be added as well.

Why is it needed?

I figured out the endpoint displayed in the object storage dashboard is confusing. An example is:

https://mybucket.s3.fr-par.scw.cloud

When uploading to this bucket using the CLI, e.g using the following command:

aws s3 cp --endpoint-url https://mybucket.s3.fr-par.scw.cloud --recursive build/ s3://mybucket

A folder will be created under https://mybucket.s3.fr-par.scw.cloud/mybucket.
Since the Edge Service serves from the bucket's root directory, it is not possible to use the service in this way. Instead one needs to upload to the root endpoint of the region:

aws s3 cp --endpoint-url https://s3.fr-par.scw.cloud --recursive build/ s3://mybucket

A guide or otherwise any mention of this in the documentation would have saved me an investigation of multiple hours, that was only resolved by diffing the URL created by the web UI vs the command line.

Want to write this documentation yourself?

Yes

Related PR(s)

No response

(Optional) Scaleway Organization ID

No response

Email address

[email protected]

@RoRoJ
Copy link
Contributor

RoRoJ commented Nov 20, 2024

Hello,
Sorry for the late reply: we would be happy for you to go ahead and write this tutorial.
Please feel free to open a PR whenever you are ready :-)

Contribution guidance here: https://github.com/scaleway/docs-content?tab=readme-ov-file#%EF%B8%8F-contributing
Writing guidelines here: https://www.scaleway.com/en/docs/guidelines/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants