MonoApi construct #181
Replies: 4 comments 3 replies
-
I like the idea 👍 Not sure about the construct name but that's a detail 😊 I'm wondering if we can factor some things with the server-side website construct or even merge the two? |
Beta Was this translation helpful? Give feedback.
-
When starting my implementation, I found a lot of things to recover from the server-side website actually. Concerning the idea you mention, it would be in line with the future presentation of @mnapoli (https://twitter.com/matthieunapoli/status/1512023467100626950) But how to work with the reference of the lambda or its url. Does the serverless framework give these informations ? And for the name... i agree with you :D |
Beta Was this translation helpful? Give feedback.
-
Thanks for this proposal @piolet :) ! In order to have an "autonomous" construct, I'd suggest a definition interface similar to queue construct, where a lambda is involved as well. WDYT ? |
Beta Was this translation helpful? Give feedback.
-
@fredericbarthelet so I just had a quick look. Maybe like this (same way as for the api gateway url), but I'm not sure if the id is the right one, nor if the URL format is always this one:
|
Beta Was this translation helpful? Give feedback.
-
To go with this great news (https://www.serverless.com/blog/aws-lambda-function-urls-with-serverless-framework)
The idea would be to create a constructor that uses the url created by the serverless framework by linking it to a CDN.
With the CDN, you could create a domain and have a complete template.
This constructor would take as argument the arn of a certificate, the name of the domain to create and the reference to the Lambda or its URL.
For the moment, I don't know if the CDK allows to have this information concerning the Lambda and its URL.
For opinion, and also for a little help ;)
Beta Was this translation helpful? Give feedback.
All reactions