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
1 Answer
Reset to default 0You'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条)