Hello! So I've moved most of my infrastructure to ...
# help
h
Hello! So I've moved most of my infrastructure to SST and it's great however, I'm unable to setup lambda@edge. It seems to be unable to copy a file for some reason.
Copy code
Error: ENOENT: no such file or directory, copyfile '/home/xxx/xxx/xxx/node_modules/@aws-cdk/core/lib/custom-resource-provider/nodejs-entrypoint.js' -> '/home/xxx/xxx/xxx/.build/lib/edge-function/__entrypoint__.js'
Any ideas why this is happening??
t
I just had this issue as well. Let me look into it
f
Can you check if the @aws-cdk/aws-cloudfront is in your package.json?
h
It's not I will try installing it and see if that helps!
t
Ah that's the same issue I was having when adding that s3 feature
cool
h
Seems like that fixed the issue! Thank you 🙂
I guess I have one more question, I've been facing some cross-stack cyclic problems and figured that the best solution would be to move some env variables to
app.setDefaultFunctionProps
however, I can't find any reference on how to use
.valueFromLookup
I'm trying to export the
api.url
as an environment variable to all my lambda functions, ideally only 3/4 need it but when I reference the
api.url
directly i end up with cyclic problems.
Ignore above, figured it out