serverless-localstack icon indicating copy to clipboard operation
serverless-localstack copied to clipboard

Unable to use external YAML files to configure plugin

Open scrofungulus opened this issue 5 years ago • 1 comments
trafficstars

WIth the following configuration:

plugins: 
  - serverless-localstack
custom: 
  localstack: ${file(../../localstack.yml):localstack}

The plugin does not get configured properly and ends up just using plugin's default configuration.

If I do a serverless print the output is as expected with the proper configuration:

plugins:
  - serverless-localstack
custom:
  localstack:
    stages:
      - local
    autostart: true
    endpoints: null
    lambda:
      mountCode: false
    docker:
      sudo: false
    debug: true

My use case is that I am maintaining a monorepo of Lambda functions and would desire to not replicate configuration across each function. Another note, as I know that this has lifecycle considerations as well, is that I am using SSM parameters in my provider block.

Is this desired, if not is it feasible to support this?

┆Issue is synchronized with this Jira Task by Unito

scrofungulus avatar Apr 22 '20 19:04 scrofungulus

@scrofungulus Thank you for reporting this issue. Can you please give it a try once again using latest release? We tried according your use-case, but we are not able to reproduce the issue. I think the issue has already been resolved in the latest release. If you are still facing the same issue in latest release and if you can provide us code or both (serverless.yml and localstack.yml) files,then it will be helpful for us to reproducing the issue. Thank you.

monty16597 avatar Aug 24 '20 18:08 monty16597