sbstjn / serverless-dynamodb-autoscaling

Serverless Plugin for Amazon DynamoDB Auto Scaling configuration.
https://sbstjn.com/serverless-dynamodb-auto-scaling-with-cloudformation.html
MIT License
148 stars 27 forks source link

Pass custom values to to generate names. #14

Closed sbstjn closed 7 years ago

sbstjn commented 7 years ago

When you have a fancy ( aka broken? ) serverless.yml the auto-generated names will fail to create unique names. The service name should be part of the generated names.

service: ${self:custom.service}

provider:
  stage: v1

custom:
  fallback:
    env: dev

  name: api
  env: ${opt:env, self:custom.fallback.env}
  service: ${self:custom.env}-${self:custom.name}