Add terraform plan
output to merge requests and expose details from
terraform plan
runs directly into a merge request widget enabling you to see
statistics about the resources that Terraform creates, modifies, or destroys.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/bash | |
GITHUB_TOKEN=$(grep token ~/.gitconfig | awk '{print $3}') | |
GITHUB_USER="eana" | |
REPOSITORIES=$(curl -s -H "Authorization: token ${GITHUB_TOKEN}" https://api.github.com/user/repos?per_page=100 | grep ssh_url | grep "${GITHUB_USER}" | cut -d ':' -f 2-3 | tr -d '",') | |
for repository in ${REPOSITORIES}; do | |
git clone "${repository}" | |
done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# shellcheck disable=SC2046 | |
set -euo pipefail | |
# | |
# Sample for getting temp session token from AWS STS | |
# | |
# aws --profile youriamuser sts get-session-token --duration 3600 \ | |
# --serial-number arn:aws:iam::012345678901:mfa/user --token-code 012345 |