Hi @sabinthedev ! Thanks in advance for your great article and how your explain things! It's really interesting to read, thanks!!!
May I ask one question regardin the Reference to the Lambda Layer?
your are setting:
layers:-{Ref:PrismaLambdaLayer}
But there is no Layer declared with that name, as they are named prisma.
Is this correct?
Or the right way is to Ref to it like to prisma, in this case, for example?
Senior Full Stack Developer. I've been a full-stack web developer for about 9 years!
My passion is making fun things and sharing how I did it!
Prisma is my jam.
This creates a layer named prisma. According to the docs here:
To use a layer with a function in the same service, use a CloudFormation Ref. The name of your layer in the CloudFormation template will be your layer name TitleCased (without spaces) and have LambdaLayer appended to the end.
So following that, the layer name would be referenced as PrismaLambdaLayer.
Hope this helps!
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi @sabinthedev ! Thanks in advance for your great article and how your explain things! It's really interesting to read, thanks!!!
May I ask one question regardin the Reference to the Lambda Layer?
your are setting:
But there is no Layer declared with that name, as they are named
prisma
.Is this correct?
Or the right way is to Ref to it like to
prisma
, in this case, for example?Thanks in advance!!
Regards
Hey Marcos!
If you look at the section where the layers are defined for the entire service:
This creates a layer named
prisma
. According to the docs here:So following that, the layer name would be referenced as
PrismaLambdaLayer
.Hope this helps!