Mounting an EFS

Just wanted to mention that I found a workaround. I’m using plugin serverless-default-aws-resource-properties and setting the EFS configuration as a default for all Lambda functions. Because of that, obviously only lambdas that need this configuration should be in this stack.

custom:
  defaultAwsProperties:
    - Type: AWS::Lambda::Function
      Properties:
        FileSystemConfigs:
          - Arn: { 'Fn::GetAtt': [ efsAP, Arn ] }
            LocalMountPath: ${self:custom.fsPath}

And it correctly generates the code, but again, with the caveat that all lambdas in this stack will have this configuration.