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 | |
# Script to create OIDC provider for GitHub Actions | |
# This script creates an OIDC provider in AWS for GitHub Actions to assume roles | |
# It also creates an IAM role with the appropriate trust policy for the specified repository | |
set -euo pipefail # Exit on error, undefined variables, and pipe failures | |
# Color codes for output formatting | |
readonly RED='\033[0;31m' |