Cloud servers

The CANedge2 can be used with multiple cloud servers for convenience and easy scalability.



Google S3 cloud



Google Cloud Storage supports S3 via ‘Interoperability’:

  1. Sign up for a free account (this requires your card details, but no charges are made)
  2. Go to ‘Storage/Browser/Create bucket’ and select a nearby region
  3. Go to ‘Settings/Interoperability’ to get your endpoint/keys
  4. To enable CORS, start Google Cloud Shell via the >_ icon in the upper right corner (video)
  5. Enter the following command:
echo '[{"maxAgeSeconds": 3600, "method": ["GET", "OPTIONS", "HEAD", "PUT", "POST"],
"origin": ["*"], "responseHeader": ["*"]}]' > cors-config.json
  1. Run this in the shell with your bucket name: gsutil cors set cors-config.json gs://your_bucket
  2. Copy the S3 details into your Configuration File via the editor and save it
  3. Load the file in the CANcloud login page and verify that you can access the S3 bucket

Example: CANedge2 Google Cloud S3 server configuration

|device_name| configuration details Google Cloud S3

Azure S3 cloud [via gateway]



Azure does not support S3 natively - but you can add a Flexify S3 gateway for your Blob Storage container in 1 min. It is easy, secure and practically free[4].

Below we assume that you already have an Azure Blob Storage container:

  1. Sign up for a free Flexify account and login (no credit card required)
  2. Click the ‘…’ next to your Azure Blob Storage container to create a SAS token[5]
  3. In Flexify, go to ‘Data/Add storage account’, select Azure and add your token and container
  4. Next, go to ‘Endpoints/New endpoint’ and attach your storage account
  5. Use the http://s3.flexify.io endpoint for initial testing
  6. Copy the S3 details into your Configuration File via the editor and save it
  7. Load the file in the CANcloud login page and verify that you can access the S3 bucket

Example: CANedge2 Azure-Flexify Cloud S3 server configuration

|device_name| configuration details Azure-Flexify

Note

Once you’ve verified the initial connection, select the endpoint with the most nearby region[6]. Note that for the regional Flexify endpoints, you must enable TLS to connect


Other S3 clouds

You can also use other S3 cloud servers like Wasabi or DigitalOcean. The concept of setting these up is similar to e.g. AWS and hence not described in detail here. If questions, please contact us.


[1]The link opens an AWS CloudFormation ‘quick-create’ stack. This is a concept that allows for deploying pre-defined resources within your AWS account. The linked template creates an S3 bucket and a new IAM user with full access to the S3 bucket (but nothing else). The template also adds the CORS policy required for you to access the S3 bucket via CANcloud. If you are not the AWS account owner, you can forward the guide to the relevant persons. If you prefer a more ‘manual’ setup, see our original step-by-step guide. For regions in China, use this link to create your S3 bucket.
[2]The bucket will be created in the region that is currently active in your AWS console, which will generally be recommended if your deployment is near your own location. You can optionally change the region by changing this in the AWS console upper right corner. Selecting a region near your device deployment is key to ensuring fast data transfer rates.
[3]Deleting the stack removes the sensitive details from the Outputs tab and ensures that the created resources are controlled independently of the stack. Your resources are not deleted (i.e. your S3 bucket, IAM user and credentials).
[4]Flexify charges an insignificant 0.04$/GB uploaded/downloaded (zero fixed fees). Your account will start with 20$ free credits (~500 GB data) without the need for adding a credit card up front. You can add more credits as you progress.
[5]Enable all access rights and ensure the token has a sufficient life time for your project
[6]If you are e.g. in EU and only have US based Flexify endpoints available, consider creating an Azure Blob Storage container in a US region as well to minimize the total latency for the CANedge