Here’s how to add an IAM role to a GCP Service Account.

<pre lang="bash">
gcloud projects add-iam-policy-binding your-project-id \
--member serviceAccount:service-account-name@your-project-id.iam.gserviceaccount.com \
--role roles/storage.objectAdmin