Skip to content

Instantly share code, notes, and snippets.

@alexei-led
Created February 17, 2020 09:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexei-led/1790d9e61c63123937d01c8146c1a67d to your computer and use it in GitHub Desktop.
Save alexei-led/1790d9e61c63123937d01c8146c1a67d to your computer and use it in GitHub Desktop.
Markdium-Securely Access AWS from GKE
# create GCP Service Account
gcloud iam service-accounts create ${GSA_NAME}
# get GCP SA UID to be used for AWS Role with Google OIDC Web Identity
GSA_ID=$(gcloud iam service-accounts describe --format json ${GSA_NAME}@${PROJECT_ID}.iam.gserviceaccount.com | jq -r '.uniqueId')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment