Hi! Not sure if it’s the right place to ask. I have a service running on AWS, and I want to publish the message via Pubsub to GCP, so I use the workload identity federation to achieve it. My teammate built a workload identity federation with guidance and generated a JSON file with the type of “external_account.” I passed this file with topic id and project id to GCP and tried to publish the message. However, I got an error in service account access token generation.
“message did not publish successfully: message did not publish successfully: rpc error: code = Unauthenticated desc = transport: per-RPC creds failed due to error: oauth2/google: unable to generate access token: Post "https://iamcredentials.googleapis.com/v1/projects/-/serviceAccounts/<topic_id>@<project_id>.iam.gserviceaccount.com:generateAccessToken": Get "[http://169.254.169.254/latest/meta-data/iam/security-credentials\](http://169.254.169.254/latest/meta-data/iam/security-credentials\)”: dial tcp 169.254.169.254:80: i/o timeout”
I don’t know why I got this error. Can someone help me, please? Please share any ideas you have, much appreciated!