serverless-dynamodb-local icon indicating copy to clipboard operation
serverless-dynamodb-local copied to clipboard

DynamoDB Local is not available for stage when loading from file

Open AhmedNourJamalElDin opened this issue 6 years ago • 7 comments
trafficstars

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

AhmedNourJamalElDin avatar Sep 02 '19 05:09 AhmedNourJamalElDin

confirming this is an issue. Am having to revert to get over this..

str3tch avatar Apr 30 '20 08:04 str3tch

I can also confirm that this happens when loading custom from a file.

akleiber avatar Apr 30 '20 17:04 akleiber

I can also confirm that this happens when loading custom from a file.

dbritto-dev avatar Jun 21 '20 15:06 dbritto-dev

Confirmed - resolved by reverting to 0.2.37

BartusZak avatar Jun 30 '20 12:06 BartusZak

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 avatar Dec 01 '20 09:12 tgoorden

@tgoorden The issue here is when you load the yaml from a file (see original post) - adding 'test' directly as you put will work.

str3tch avatar Dec 03 '20 06:12 str3tch

+1! Also reverted back to v0.2.35 to avoid having to explicitly specify a stage in YAML

myartsev avatar Dec 01 '21 18:12 myartsev