The current iteration of this stack utilizes a Custom Resource in order to extract the domain name of the image-optimization Lambda's function URL. This implementation is pretty complex and is very difficult to port over to other CDK languages or implementations.
I've removed this implementation and replaced it with utilizing CDK Intrinsic Functions that allow us to parse out the domain name of the URL at deploy time. This makes the implementation a lot simpler and removes the need to port a Custom Resource over to other languages.
Description of changes:
The current iteration of this stack utilizes a Custom Resource in order to extract the domain name of the image-optimization Lambda's function URL. This implementation is pretty complex and is very difficult to port over to other CDK languages or implementations.
I've removed this implementation and replaced it with utilizing CDK Intrinsic Functions that allow us to parse out the domain name of the URL at deploy time. This makes the implementation a lot simpler and removes the need to port a Custom Resource over to other languages.