Learn how to configure Paperspace for use with Filebase.
What is Paperspace?
Paperspace is a cloud computing platform that enables developers to create next-generation applications from within their web browser. Paperspace offers a variety of Machine Learning models and fully managed cloud GPU platforms for endless development environments. Paperspace allows you to use and store data on S3-compatible storage services such as Filebase.
Read below to learn how to use Paperspace with Filebase.
Prerequisites:
Download and configure AWS CLI for use with Filebase.
Have Your Filebase Access and Secret Keys. Learn how to view your access keys here.
Create a Filebase Bucket. Learn how to create a bucket here.
1. First, we need to configure our Filebase bucket to have a CORS policy that allows connection to Paperspace.
For more detailed information on CORS, check out our documentation here.​
To do this, create a new file called cors.json with the following content:
1
{
2
"CORSRules":
3
[
4
{
5
"AllowedHeaders":[
6
"*"
7
],
8
"AllowedMethods":[
9
"GET",
10
"PUT"
11
],
12
"AllowedOrigins":[
13
"https://console.paperspace.com"
14
],
15
"ExposeHeaders":[],
16
"MaxAgeSeconds":3000
17
}
18
]
19
​
20
}
Copied!
2. Next, apply this CORS policy to your Filebase bucket with the command: