Giter VIP home page Giter VIP logo

Comments (5)

jschwanz avatar jschwanz commented on July 21, 2024 1

I'm using the wrapper in PRs to easily get the output of of the plan command and display the result in a message on the PR.

We've been using suzuki-shunsuke/tfcmt for that functionality. That's not to say this proposal is not worthwhile, because I think it could be beneficial.

from setup-opentofu.

ilmax avatar ilmax commented on July 21, 2024 1

Hey @dmlb2000 not sure this is related to this issue, but you can do it with terraform and open tofu as well since it's the provider (i.e. azurerm) that needs to authenticate to azure API, not open tofu itself.
I wrote a post a while ago how to set it up, it may help you. You can find it here https://maxdon.tech/posts/github-azure-oidc/

from setup-opentofu.

kislerdm avatar kislerdm commented on July 21, 2024

@ilmax Hey Massimiliano, thank you for your feedback and an interesting proposal. Indeed, the wrapper was implemented to reflect the functionality of the setup-terraform action, but it does not mean that we won't extend its behaviour ;)

For context, the wrapper's features are mostly used to execute tofu commands using GitOps approach, when the tofu user reads the plan before executing the apply command. Moreover, automation of consecutive execution of the commands tofu plan and tofu apply -auto-approve is not recommended.

Could you please illustrate 2-3 use cases when the functionality you proposed would be beneficial?

from setup-opentofu.

ilmax avatar ilmax commented on July 21, 2024

Hello @kislerdm and thank you for taking time to answer here.

I'm using the wrapper in PRs to easily get the output of of the plan command and display the result in a message on the PR.

I manually implemented what I suggest here to add a comment in the PR with different colours, no changes means a green comment gets added, if I have create or update resources I use yellow and for delete I use red.

I also was thinking about dynamically adding reviewers to the PR, or triggering some notification if some resources will be deleted or such.

To me using colours helped driving attention where the PR is making some infrastructure changes. Not sure if this meets the bar, I just thought it would be an interesting functionality to add

from setup-opentofu.

dmlb2000 avatar dmlb2000 commented on July 21, 2024

@kislerdm is there documented concerns about automating plan and apply steps? Looking at other infrastructure as code tools, they can automate the creation resources.

For my specific use case, Azure has specific integrations with GitHub to federate service principals with actions.

https://learn.microsoft.com/en-us/training/paths/bicep-github-actions/

This is for using Bicep but I'm wondering if it will work with OpenTofu.

from setup-opentofu.

Related Issues (7)

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.