serverless-dynamodb-local
serverless-dynamodb-local copied to clipboard
DynamoDB Local is not available for stage when loading from file
Actual Behaviour When running:
serverless dynamodb migrate --stage test
We get:
Serverless: Skipping migration: DynamoDB Local is not available for stage: test
Expected Behaviour
It would work as it used to
Steps to reproduce it
- Create a new file for dynamodb-local config, let's call it
dynamodb-local.yml - Add it to serverless.yml as follows:
custom:
dynamodb: ${file(./dynamodb-local.yml)}
LogCat for the issue
Serverless: Skipping migration: DynamoDB Local is not available for stage: test
Screenshots of the issue
None
Would you like to work on the issue?
Yes
temp solution the solution for me was reverting back to v0.2.35
confirming this is an issue. Am having to revert to get over this..
I can also confirm that this happens when loading custom from a file.
I can also confirm that this happens when loading custom from a file.
Confirmed - resolved by reverting to 0.2.37
For anyone still finding this issue, you need to add the test stage (or whatever stage you need it for) to your config:
custom:
dynamodb:
stages:
- test
@tgoorden The issue here is when you load the yaml from a file (see original post) - adding 'test' directly as you put will work.
+1! Also reverted back to v0.2.35 to avoid having to explicitly specify a stage in YAML