Created
July 23, 2025 09:18
-
-
Save vasylherman/2ca1c119e5794aa93df4f6d15b036185 to your computer and use it in GitHub Desktop.
aws iam identity provider
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/env bash | |
| set -euo pipefail | |
| # === Configurable Parameters === | |
| PROVIDER_TAG="$1" | |
| GITLAB_ISSUER_URL="https://$PROVIDER_TAG" | |
| GITLAB_AUDIENCE="https://$PROVIDER_TAG" # Default audience used by GitLab | |
| aws iam create-open-id-connect-provider \ | |
| --url "$GITLAB_ISSUER_URL" \ | |
| --client-id-list "$GITLAB_AUDIENCE" | cat |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
curl -s https://gist.githubusercontent.com/vasylherman/2ca1c119e5794aa93df4f6d15b036185/raw | bash