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/19570300e584798d4d5c3a234ceb0d62 to your computer and use it in GitHub Desktop.
Save alexei-led/19570300e584798d4d5c3a234ceb0d62 to your computer and use it in GitHub Desktop.
Markdium-Securely Access AWS from GKE
gcloud iam service-accounts add-iam-policy-binding \
--role roles/iam.workloadIdentityUser \
--role roles/iam.serviceAccountTokenCreator \
--member "serviceAccount:${PROJECT_ID}.svc.id.goog[${K8S_NAMESPACE}/${KSA_NAME}]" \
${GSA_NAME}@${PROJECT_ID}.iam.gserviceaccount.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment