Is it possible to specify the deployment region with the netlify addon?

Hi,

Is it possible to specify the deployment region with the netlify addon?

It seems to default to classic and I am unsure how to change it or specify the region from the addon.

Thanks,

Paul

There is currently no way to specify a Region Group when using the Netlify addon. When you run this command:

netlify addons:create fauna

A database is created for you. You’re correct that the new database is created in the Classic Region Group.

That said, there is nothing preventing you from creating a new database in another Region Group and providing your Netlify application with keys to that database.

UPDATE: I created an internal ticket requesting that we make it possible to specify a Region Group from the addon command.

@ptpaterson Thanks for the update, that was what I expected.

I look forward to seeing that feature coming along in the future.

For anyone else looking here, I had to update the client connection to specify the eu region when connecting an existing db in my netlify function:

 const client = new faunadb.Client({
    secret: process.env.FAUNADB_SERVER_SECRET,
    domain: 'db.eu.fauna.com',
    scheme: 'https'
  })

Read more

I was receiveng a 401 and it took a while for me to figure this out.

Thanks,

Paul

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.