GithubHelp home page GithubHelp logo

Comments (7)

ITProKyle avatar ITProKyle commented on June 7, 2024

I think name would make logical sense. Would be nice to see the option to define deployments as a dict using the name as the key as well as supplying the deployments as a list of dicts as shown in your example.

___
deployments:
  - name: global_deployments
    modules:
    ....

OR

___
deployments:
  global_deployments:
    modules:
    ....

from runway.

rgitzel avatar rgitzel commented on June 7, 2024

I'm now thinking that modules should have explicit (and optional) names, as well.

Presumably you could group your module folders in sub-directories, so a module's path might be cfn/whatever and that wouldn't be a great name.

from runway.

rgitzel avatar rgitzel commented on June 7, 2024

@ITProKyle Myself, I prefer maps to lists in YAML, so I like the idea.

But... deployments and modules currently are processed in the order given by the list. If they are read into a dict that ordering would be lost.

from runway.

ITProKyle avatar ITProKyle commented on June 7, 2024

@rgitzel

I'm now thinking that modules should have explicit (and optional) names, as well.

Presumably you could group your module folders in sub-directories, so a module's path might be cfn/whatever and that wouldn't be a great name.

I think this is less of an issue then adding names to a deployment. modules already have names since you have to define the path. If the path wouldn't be a good name for the module, then why have the module in that path to begin with?

But... deployments and modules currently are processed in the order given by the list. If they are read into a dict that ordering would be lost.

stacker (a dependency of runway) has logic for handling this that we may be able to reference. the example I provided are both valid formats for defining stacks and *_hooks.

from runway.

troyready avatar troyready commented on June 7, 2024

Agreed with the idea of adding the optional name: property to the current deployments presuming its needed for #44 and we move forward with it.

If the path wouldn't be a good name for the module, then why have the module in that path to begin with?
The precedence for this now @ITProKyle is the staticsite modules that allow name: to be specified to override the CFN stack names

from runway.

jpoissant avatar jpoissant commented on June 7, 2024

I would assume that with the PR merged this issue can is not Open anymore. Can we update the issue status?

from runway.

GarisonLotus avatar GarisonLotus commented on June 7, 2024

@ITProKyle - I think this issue is actually resolved. Can we close the issue out?

from runway.

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.