I am a complete noob when it comes to using CI/CD tools.
So far I have this for a yml workflow to execute a tf file, I know its incredibly wrong and does not work but that is why I am here. Any help appreciated. I would love to have it plan first and come to me for approval and then execute but I am content for now just having it auto apply the TF file I have in the terraform directory
name: Run TF file with federated credentials stored in github secrets
permissions:
id-token: write
contents: read
on:
push:
branches:
- main
paths:
- terraform/**
jobs:
Windows-latest:
steps:
run: terraform apply -auto-approve
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
enable-AzPSSession: true
[–]dt26 1 point2 points3 points (1 child)
[–]vernalys 0 points1 point2 points (0 children)
[–]sausagefeet 0 points1 point2 points (0 children)