google-cloud-iam Questions

2

I've been following the steps in the Google tutorial, Using Pub/Sub with Cloud Run tutorial. All ok until allowing Google's service account to create auth tokens (Integrating with Pub/Sub 2.b.) Her...
Puffy asked 16/10, 2022 at 18:44

6

I have succesfully deployed a 2nd generation cloud function with a storage trigger per the google tutorial. The Cloud Function works when I run a test command in the shell. But if I try for real by...

4

I am trying to allocate the roles to the user in the Terraform file in a GCP project, but I am getting the below error : Error: Request "Create IAM Members roles/compute.networkAdmin user:[em...

6

Solved

Is there a way to programmatically access the email of the currently used Service Account on a GCP instance when no GOOGLE_APPLICATION_CREDENTIALS is set? (ie. when using the default Service Accoun...

7

Solved

I encounter the following warning: WARNING: You do not appear to have access to project [$PROJECT] or it does not exist. after running the following commands locally: Activate and set a service ...
Genny asked 6/11, 2019 at 15:27

3

I am trying to deploy a service with a non-default service account by following this guide and it says I need "the iam.serviceAccounts.actAs permission on the service account being deployed". The s...

2

The following setup exist and works fine: Google Cloud Run (my API worked when I used the open URL - i.e. something like this https://some_name-ab3adasmjk-oa.a.run.app) Google Cloud Scheduler (ca...
Peloquin asked 7/11, 2023 at 17:10

3

Solved

I want to create an automatic deployment of GCP for clients. In order to do that, I have opened a page for them to login with google, and then enabled the IAM API and the Service Usage API. Then ...

4

I know that I can do it via the UI (Cloud Console), and that I can also assign a role. Although, how do I grant a single permission easily? For example, I was pushing an image to Google Container ...
Medic asked 15/1, 2020 at 17:35

2

I am building an http endpoint with Google Cloud Functions. I have an encrypted secret stored as a file that is loaded and decrypted in the function as a way to prevent my secret from being stored ...

5

Solved

I am trying to deploy node js app on google cloud but getting following error - Step #1: ERROR: (gcloud.app.deploy) Permissions error fetching application [apps /mytest-240512]. Please make sure y...

4

Solved

TLDR; I'm having trouble assigning an IAM permission to a service account. I'm building a test that involves minting custom tokens with firebase Auth. When I hit: const token = await admin.auth...

3

I have created a Google Cloud Platform service account, $GCP_SERVICE_ACCOUNT, with the Storage Admin (roles/storage.admin) role. Now I wish to restrict this account so that it can only access a spe...

3

I'm failing to test the ability to use an IAM user in Google Cloud's PostgreSQL offering. Here's my thinking process: I've set respective flag on my PostgreSQL instance on Google Cloud: $ gcloud s...
Celestial asked 26/1, 2021 at 14:57

3

I am trying to create a Service Account with 'roles/container.admin' and i get an error saying that the role is not supported for this resource. $ gcloud iam service-accounts add-iam-policy-bindin...
Constanta asked 6/12, 2017 at 16:22

8

Running into problems building deploying functions. When trying to programmatically deploy the function I get the following output in builder logs (ERRORS). 2020-10-20T02:22:12.155866856Z starting...

4

Solved

I'm trying to do gsutil ls however that results in: ubuntu@ip:~$ gsutil ls AccessDeniedException: 403 [email protected] does not have storage.buckets.list access to project xxxxxxxxxxxxxxx. ...
Homozygous asked 14/11, 2019 at 20:34

2

Solved

I find myself using a lot roles/storage.legacyBucketWriter which has the following permissions: storage.buckets.get storage.objects.create storage.objects.delete storage.objects.list May be it's ...

2

Solved

On GCP, I'm trying to enable "Identity and Access Management (IAM) API" with this Terraform code below: provider "google" { credentials = file("myCredentials.json") ...

2

We are developing a program that uses Google spreadsheets as the input. The values of the spreadsheet is read, processed and a result is showed in a webpage. When an user sign up we clone a spreads...

4

Solved

In the google cloud gui console I went to "IAM & admin" > "Service accounts" and created a service account named "my-service-account" with the viewer role. I then ran this command: gcloud iam...
Stinko asked 29/10, 2017 at 22:50

1

Solved

I've previously only used Cloud Functions of gen. 1 but now plan to move to 2nd generation and is just trying to deploy/test a first basic function. I'm just taking the Google sample for a storage ...

1

Solved

This is the shape of my JSON service account key from Google. { "type": "service_account", "project_id": "", "private_key_id": "", &q...

7

I'd like to be able to list all users and service account associated with my projects (preferably using the gcloud CLI tool, but happy to make an API call if needs be). I can easily list all the s...
Lurlenelurline asked 25/6, 2017 at 12:26

20

Solved

I am working on a bitbucket pipeline for pushing image to gc container registry. I have created a service account with Storage Admin role. ([email protected]) gcloud auth activate-service-a...

© 2022 - 2025 — McMap. All rights reserved.