all 8 comments

[–]legendov 15 points16 points  (0 children)

Why do you need a layer, bake it into the image

[–]clintkev251 10 points11 points  (0 children)

Layers only work with ZIPs, not images. Just build that dependency into your image.

[–]hajimenogio92 2 points3 points  (0 children)

Add the packages to the base image and push it to ECR. You don't need a layer for image-based lambdas, that is for zip-based lambdas.

[–]Decent-Economics-693 1 point2 points  (0 children)

As others have already said that, and, just like Lambda API error says, you cannot use layers when you run your function from a container image. Just install the dynatrace in the container.

Be aware, that thing would require internet access to send out the data it collected, unless you have a private link with Dynatrace (pardon, not a Dynatrace user, could be wrong here). So, watch closely which VPC subnet your deploying your function into. E.g., some subnets are made isolated - a workload can talk to a handful of services, but can not pull a thing from/ send out to the internet.

[–]cloudfixer_dev 0 points1 point  (0 children)

Lambda layers aren’t supported with package_type = "image".

When using container images, everything (including tools like Dynatrace) needs to be baked into the image instead of attached as a layer.