When trying to use the codefresh_current_account data source with any provider version above 0.1.2 (0.1.2 works), a 403 error is returned:
{"status":403,"code":"2400","name":"FORBIDDEN_ERROR","message":"Required role: 'Admin' is not included in the user
roles: [User]","context":{"requiredRole":"Admin","userRoles":["User"]}}
I am using a token that is an account admin, so would expect to be able to use this. However am unsure if this data source is intended to only be able to be used by a token that is a Codefresh level admin, rather than just an account admin.
What happened?
When trying to use the codefresh_current_account data source with any provider version above 0.1.2 (0.1.2 works), a 403 error is returned:
{"status":403,"code":"2400","name":"FORBIDDEN_ERROR","message":"Required role: 'Admin' is not included in the user roles: [User]","context":{"requiredRole":"Admin","userRoles":["User"]}}
I am using a token that is an account admin, so would expect to be able to use this. However am unsure if this data source is intended to only be able to be used by a token that is a Codefresh level admin, rather than just an account admin.
Version
0.2.0+
Relevant Terraform Configuration