AWS Role Assumption from a GCP VM

Matt Kornfield
5 min readMay 2, 2024

Now with terraform!

GCP -> AWS Role assumption

Didn’t AWS write a Blog on This?

Yes, right here. And someone wrote a Medium article on how to do it here, but there are a few things I think worth calling out/explaining:

  • How JWTs work and are encoded in this context
  • How the trust relationship is created via attributes of the JWT

--

--