awsdocs/aws-sam-developer-guide

What do you mean by "layer-logical-id"

Ankitsingh1TR opened this issue · 2 comments

Can we get some example commands ? or its same meance Layar-logical-id = layername ?

I'm not sure what page you're referring to but in the building layers section, they provide the following example:

Resources:
  MyLayer:
    Type: AWS::Serverless::LayerVersion
    Properties:
      ContentUri: my_layer
      CompatibleRuntimes:
        - python3.6
    Metadata:
      BuildMethod: python3.6              # Required to have AWS SAM build this layer

In that example MyLayer is the layer-logical-id. If a build step is required, you should have a build target of build-MyLayer in the make file.

This is explained in the Building layers section.

Thank you so much.