Skip to content

Instantly share code, notes, and snippets.

Last active February 2, 2023 06:44
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
service account gap
const saApiAdmin = new gcp.serviceaccount.Account(`sa-apiadmin-${projectEnv}`, {
accountId: `sa-apiadmin-${projectEnv}`,
displayName: `A service account used for bucket access for API`,
const storageRWRole = new gcp.projects.IAMCustomRole(`role-api-storage-rw-${projectEnv}`, {
description: "Bucket/pubsub read write role",
permissions: [
roleId: `roleapistoragerw${projectEnv}`,
title: `role-api-storage-rw-${projectEnv}`,
const saApiAdminIam = new gcp.serviceaccount.IAMBinding("saapiadmin-account-iam", {
members: [pulumi.concat("serviceAccount", ":",],
export const saAdmin =;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment