@dns / @domain pragma #1243
Replies: 9 comments
-
Note to update docs: |
Beta Was this translation helpful? Give feedback.
-
Note to self: publish domains prototype macro here asap! |
Beta Was this translation helpful? Give feedback.
-
@brianleroux do you have a work in progress version of the macro? Would be willing to help take it over the finish line |
Beta Was this translation helpful? Give feedback.
-
put some thought into the ideal declarative config
|
Beta Was this translation helpful? Give feedback.
-
Yo, that is really nice. I like it a lot. |
Beta Was this translation helpful? Give feedback.
-
certificates is one problem. another is how we want to model how this works. my assumption is:
though when I look at it like that maybe we create a cloudfront dist always for symmetry. this is also totally glossing over the need for a certificate for these. ideally we want to guide the end user to have an apex domain on http and sub domains for static assets and the web socket connection upgrade endpoint. this way an app shares an origin which means all these things can share an httpOnly session cleanly without CORs hacks or (worse) client readable cookies. |
Beta Was this translation helpful? Give feedback.
-
I think to just have a cloudfront dist always makes sense. Even for static assets it's better to have the cloudfront option. The thing that would be needed in that case is some amount of config with regard to status code handling at the CloudFront level. For SPAs in CloudFront that typically means sending 404/3s to |
Beta Was this translation helpful? Give feedback.
-
One other detail: think this will be a whole separate CloudFormation stack. DNS just doesn't change all that much (nor do CloudFront distributions) so it makes sense to make this a totally discreet operation with isolated artifacts. |
Beta Was this translation helpful? Give feedback.
-
Ok! thx for hanging in there folks. We have a prototype in macro form ready for testing: https://github.com/brianleroux/arc-macro-dns |
Beta Was this translation helpful? Give feedback.
-
Is your feature request related to a problem? Please describe.
Currently, Arc 6 is missing support for the
@dns
pragma; this is in part due to the fact that HTTP infra underwent some changes during the 6 buildout, in addition to adding@cdn
pragma.@dns
(or alternately@domain
) should come back to Architect, enabling users to define a domain they'd like to use for their app, and have it easily set up on their behalf.Describe the solution you'd like
Users should be able to define
@dns
(or alternately / preferably (imo)@domain
), which would enable them to define a domain, and wire that domain into their existing stack.Considerations include origins (
@http
vs@cdn
), origin paths, and cert provisioning (and region consideration for cert provisioning for CDN support), among other things.Describe alternatives you've considered
This can be done manually today if one knows what to do (and how to do it). It's not a great alternative.
Beta Was this translation helpful? Give feedback.
All reactions