Giter Site home page Giter Site logo

Comments (2)

motatoes avatar motatoes commented on June 10, 2024 1

I think it should be straightforward to bake this into digger since we already have the oidc spec implemented. Had a question on the api for it because I'm already not liking the fact that we have state and command. Just don't think its super understandable from the yml alone without docs. But maybe its just me.

Adding "plan" to the mix I think will make it even more confusing. Another thing I dislike about the current implementation is the fact that you have to specify 2 roles per project always "state and "command".

Wondering if there's a better spec here. Perhaps something like

    - name: "{{github.org}}-{{github.repo}}-prod"
      dir: prod
      workflow: default
      include_patterns: [
        "./modules/**",
        "./config/prod/**",
      ]
      workflow_file: digger_workflow.yml
      aws_role_to_assume: {{output.stsStateRole.always_role}}

For when you have the same role for all. Or having them split out on demand:

    - name: "{{github.org}}-{{github.repo}}-prod"
      dir: prod
      workflow: default
      include_patterns: [
        "./modules/**",
        "./config/prod/**",
      ]
      workflow_file: digger_workflow.yml
      aws_role_to_assume: 
          state: {{output.stsStateRole.state_role}}
          plan: {{output.stsStateRole.plan_role}}
          apply: {{output.stsStateRole.apply_role}}

thoughts? I know its not related to the problem at hand but I thought I'd bring it up while we discuss this as well

from digger.

ben-of-codecraft avatar ben-of-codecraft commented on June 10, 2024

I agree with your suggestion about having either 1 role like in the first example or splitting it into the 3 like you show. Those are more clear in what are used for where the command/state one was not as clear.

That is the direction I would like to see.

from digger.

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.