google cloud platform - rolesredis.dbConnectionUser is not supported for this resource - Stack Overflow

I am trying to add rolesredis.dbConnectionUser to a service account in GCP but I am getting an error.

I am trying to add roles/redis.dbConnectionUser to a service account in GCP but I am getting an error.

apiVersion: iamrm.cloud.google/v1beta1
kind: IAMPartialPolicy
metadata:
  name: roles-at-sa-level
spec:
  resourceRef:
    kind: IAMServiceAccount
    external: projects/my-project/serviceAccounts/[email protected]
  bindings:
  - role: roles/redis.dbConnectionUser
    members:
    - member: "serviceAccount:[email protected]"

Error:

Events:
  Type     Reason        Age   From                         Message
  ----     ------        ----  ----                         -------
  Warning  UpdateFailed  12s   iampartialpolicy-controller  Update call failed: error setting policy: error applying changes: summary: Error setting IAM policy for service account 'projects/my-project/serviceAccounts/[email protected]': googleapi: Error 400: Role roles/redis.dbConnectionUser is not supported for this resource., badRequest

However, I can assign the below roles successful

  - role: roles/iam.serviceAccountTokenCreator
  - role: roles/iam.workloadIdentityUser

I think this is because the role is not yet GA as shown inthe documentation

ID - roles/redis.dbConnectionUser
Role launch stage - Beta

I am trying to add roles/redis.dbConnectionUser to a service account in GCP but I am getting an error.

apiVersion: iam.cnrm.cloud.google/v1beta1
kind: IAMPartialPolicy
metadata:
  name: roles-at-sa-level
spec:
  resourceRef:
    kind: IAMServiceAccount
    external: projects/my-project/serviceAccounts/[email protected]
  bindings:
  - role: roles/redis.dbConnectionUser
    members:
    - member: "serviceAccount:[email protected]"

Error:

Events:
  Type     Reason        Age   From                         Message
  ----     ------        ----  ----                         -------
  Warning  UpdateFailed  12s   iampartialpolicy-controller  Update call failed: error setting policy: error applying changes: summary: Error setting IAM policy for service account 'projects/my-project/serviceAccounts/[email protected]': googleapi: Error 400: Role roles/redis.dbConnectionUser is not supported for this resource., badRequest

However, I can assign the below roles successful

  - role: roles/iam.serviceAccountTokenCreator
  - role: roles/iam.workloadIdentityUser

I think this is because the role is not yet GA as shown inthe documentation

ID - roles/redis.dbConnectionUser
Role launch stage - Beta
Share Improve this question asked Mar 10 at 18:08 SHCSHC 6051 gold badge9 silver badges23 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

You're correct that the roles/redis.dbConnectionUser is currently in Beta. As of now, the only supported role for Cloud Memorystore Redis DB Connection User is redis.clusters.connect. To explore all the basic and predefined roles for Identity and Access Management (IAM), you can refer to this page : Memorystore Redis roles

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744830586a4596059.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信