AWS VPC question

Is there a way to launch the webiny API inside an existing AWS VPC subnet id and securitygroup id?

I’m using serverless for lambda APIs and use provider->vpc->securityGroupIds and provider->vpc->subnetIds to allow AWS Lambda functions to access my mongodb instance inside my per-stage VPC but it’s not clear from the webiny documentation how to edit the serverless.yml files to specify vpc subnetids and securityGroupIds to access mongodb instances within AWS VPCs.

I’ve searched webiny docs and the only search results for “vpc” are for documentDB results.

Thanks for any help.

Currently there is no easy / straight-forward way to do it.

The whole infra that’s created when deploying Webiny can be found here:

Currently, this thing you’re asking here is only possible by defining your own infrastructure from scratch, via a deployment mechanism you have.

So you would basically just use Webiny code, and host it via an infrastructure you define.

Please check the doc linked above, I think it might give you an idea on what needs to be done.

If you have more questions, feel free to ask! :slight_smile: