Thanks to visit codestin.com
Credit goes to gist.github.com

Skip to content

Instantly share code, notes, and snippets.

name: Terraform Plan
on:
push:
branches:
- main
- staging
- prod
pull_request:
branches:
@sgouda0412
sgouda0412 / 1-pull-request.png
Created May 3, 2026 09:30 — forked from managedkaos/1-pull-request.png
A GitHub Actions workflow that displays the Terraform plan in the workflow summary...
1-pull-request.png
@sgouda0412
sgouda0412 / terraform.md
Created May 3, 2026 09:29 — forked from HariSekhon/terraform.md
terraform.md from HariSekhon/Knowledge-Base repo: https://github.com/HariSekhon/Knowledge-Base

Terraform

Infrastructure-as-Code using HCL manifests to define cloud resources.

Idempotent, queries cloud APIs, detects what is missing or has changed and then applies the necessary changes to reconcile.

@sgouda0412
sgouda0412 / github-actions.md
Created May 3, 2026 09:22 — forked from gh4rib/github-actions.md
How efficiently use Github Action ?

Github Actions

A curated list of things related to GitHub Actions.

Actions are triggered by GitHub platform events directly in a repo and run on-demand workflows either on Linux, Windows or macOS virtual machines or inside a container in response. With GitHub Actions you can automate your workflow from idea to production.

Contents

@sgouda0412
sgouda0412 / bash_aliases
Created May 3, 2026 09:17 — forked from tedleyem/bash_aliases
Here is a random assortment of some bash-aliases I use semi-frequently that I think other people might enjoy or find helpful.
# ls aliases
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
# aws-cli
alias gac='gimme-aws-creds'
# apt pacakge manager
alias install='sudo apt install -y'
alias purge='sudo apt purge -y'
@sgouda0412
sgouda0412 / terraform-ci.yml
Created May 3, 2026 09:12 — forked from terley/terraform-ci.yml
Github Terraform workflow that both supports security scanning and multiple environments
name: "Terraform"
concurrency:
group: "single"
on:
push:
branches: [main]
pull_request:
branches: [main]
@sgouda0412
sgouda0412 / terraform.yaml
Created May 3, 2026 09:10 — forked from zmingxie/terraform.yaml
Terraform GitHub Action
name: 'Terraform'
on:
push:
branches:
- master
paths:
- ".github/workflows/terraform.yaml"
- "terraform/**"
pull_request:
@sgouda0412
sgouda0412 / gh-checkout.sh
Created May 3, 2026 09:09 — forked from popsu/gh-checkout.sh
Helper bash functions to apply terraform for specific GitHub PRs faster
# Checkout a specific PR number, then change folder to one of the folders based on the changed files
function gh-checkout() {
local pr_number repo_folder first_commit parent_commit folders
pr_number=$1
repo_folder=$(git rev-parse --show-toplevel)
gh pr checkout "$pr_number" || return
first_commit=$(gh pr view "$pr_number" --json commits | jq -r .commits[0].oid)
parent_commit=$(git show --no-patch --format="%P" "$first_commit")
@sgouda0412
sgouda0412 / terraform-format.yml
Created May 3, 2026 09:05 — forked from ottter/terraform-format.yml
Automatically format terraform code, including make the PR and merge
name: Setup Terraform via GitHub Actions
# Source: https://github.com/marketplace/actions/hashicorp-setup-terraform
on: [push, pull_request]
#on:
# push:
# branches:
# - main
env: