Comments (5)
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.
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.
@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.
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.
@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)
- Enhance release.js tests to calling github API
- [Enhancement] Add github API token to make api calls
- Fix the stdout content with active wrapper
- Automate release process HOT 4
- Update GitHub Action Branding from Legacy Terraform Color Scheme HOT 4
- [enhancement] Remove the debugging output emitted by default
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from setup-opentofu.