webiny / webiny-js

Open-source serverless enterprise CMS. Includes a headless CMS, page builder, form builder, and file manager. Easy to customize and expand. Deploys to AWS.
https://www.webiny.com
Other
7.29k stars 601 forks source link

Automated deployment of custom domain, ssl cert and dns entries #2574

Open hemzet opened 2 years ago

hemzet commented 2 years ago

Is your feature request related to a problem? Please describe.

Currently the setup of a custom domain requires lots of manual steps. Webiny could automate and simplify this process by utilising AWS services und Pulumi. I imagine a fully automated setup, which I assume is possible in Pulumi similar to Terraform/CDK.

Describe the feature's behavior.

Something like:

  1. Manually copy a multidomain or wildcard cert file into project folder
  2. Customise webiny.application.ts to add following steps 2.1 Upload cert into ACM 2.2 Add cert to all cloudfront distributions 2.3 Set Route53 (cname or alias for all cloudfront distributions) 2.4 Add DNSAuth for cert in Route53
  3. Run deploy

Describe alternatives you've considered.

No response

Pavel910 commented 2 years ago

This does sound interesting, but it makes Webiny dependent on Route53, which is not a service everybody uses, or wants to pay for. Even we, at Webiny, do not use Route 53. We hook up everything via Cloudflare.

To be honest, I doubt this will make it into the system as the default behavior. But it could be implemented as a community plugin. If anyone is willing to give it a go, we'd be glad to participate and provide directions.