Closed mstruensee closed 2 years ago
@mstruensee what you request isn't possible. There's several similar (closed) issues in our tracker here that you can look at if you want more details on why. Put simply, this plugin simply adjusts your CloudFormation template to configure your L@E, so we can't do what you're asking. If you want to use L@E, you have to deploy to us-east-1, as the error explains.
what about .... is there a way i can reference a cdn in an external/different stack?
looked at the code you grab the resources by the string name to get like 3 variables ... could it be possible to grab that from cf?
@mstruensee no. CloudFormation does not support us deploying a L@E function except as part of the deployment of the CloudFront distribution it will be used with. This is a CloudFront / CloudFormation problem - not a problem with the plugin.
thanks for clearing that up!
In production we deploy to us-west-2 but one of the limitations to using lambdas at the edge is they must be deployed to us-east-1 ...
how can this plugin accept a region as a param so we do not get this error during deployment ...
is there a way i can reference a cdn in an external/different stack?