Skip to content

local invoke vs. nested stack function using layer #2820

@mbradburn

Description

@mbradburn

Describe your idea/feature/enhancement

I think from reading this PR: #2760 .. that it's a known issue in the sam cli that you can't pass a layer reference as a parameter from the top-level stack to a function in a nested stack for the purposes of sam local invoke; you get a "Layer is an Invalid Layer Arn" error.

It would be deluxe to be able to define a layer in the top-level stack, share that layer with functions in nested stacks, and also be able to use sam local invoke for testing. Is support for that on your roadmap at all?

Additional Details

I put a sample project at https://github.com/mbradburn/sam-nested-layer in case I'm unclear in my description of the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions