Skip to content

Instantly share code, notes, and snippets.

@badideasforsale
badideasforsale / create_gha_oidc_in_aws.sh
Last active March 24, 2024 04:08
Create OIDC connection for GitHub Actions to use in AWS
#!/bin/bash
# Get role name, git org or user, and git repo
# If not set, error out later
# @TODO: add help text
# @TODO: verify org/repo are not wildcards
while getopts ":r:o:g:h" opt; do
case $opt in
r) ROLE_NAME="$OPTARG"