Git Product home page Git Product logo

Comments (8)

cbaron avatar cbaron commented on July 30, 2024

@SET001 -- You're correct. At the moment we do not support variables. This should not take long to implement and will put it on my task queue. In the meantime, you are welcome to put up a PR.

from aws-utils.

SET001 avatar SET001 commented on July 30, 2024

@cbaron I have some free time on this weekends so I difinelty can try to prepare some PR. Can you give me a short help on where to begin with and how you see realisation?

from aws-utils.

SET001 avatar SET001 commented on July 30, 2024

from what I see in code, here we have loadServerlessConfig that can be used to load and parse yml file and seems like it resolves variables correctly. Can it be used in server.js:createSchema?

from aws-utils.

lightsofapollo avatar lightsofapollo commented on July 30, 2024

@SET001 I added a test case and fixed it for this particular issue. This should be fixed in 0.7.3

from aws-utils.

SET001 avatar SET001 commented on July 30, 2024

than you, it is fixed now )

from aws-utils.

SET001 avatar SET001 commented on July 30, 2024

I thisnk following also related to this issue. The problem is that you can't use Rel syntax in yml files. The following defenition

    dataSources:
      - type: AMAZON_DYNAMODB
        name: Subscriber
        description: 'Subscribers table'
        config:
          tableName: {Ref: EnsSubscribersDDBTable}

result it such an error:

✖ error Query.getAllSubscribers failed
✖ error InvalidParameterType: Expected params.TableName to be a string

from aws-utils.

lightsofapollo avatar lightsofapollo commented on July 30, 2024

@SET001 This one is harder I don't think we can support cloud formation template syntax at this time. Can you assign the name to a serverless variable and use it in both places?

from aws-utils.

lightsofapollo avatar lightsofapollo commented on July 30, 2024

If needed pleas open a new issue to discuss supporting cloud formation syntax. I don't think we can support it at this time but if it's a serious blocker we can see what we can do.

from aws-utils.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.