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/d80514354a5270bd0f6766dee7947902 to your computer and use it in GitHub Desktop.
Save alexei-led/d80514354a5270bd0f6766dee7947902 to your computer and use it in GitHub Desktop.
Markdium-Securely Access AWS from GKE
cat > gcp-trust-policy.json << EOF
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"Federated": "accounts.google.com"
},
"Action": "sts:AssumeRoleWithWebIdentity",
"Condition": {
"StringEquals": {
"accounts.google.com:sub": "${GSA_SA}"
}
}
}
]
}
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment