Roles

This page describes Roles in Lenses.

Lenses IAM is role-based. Roles contain one or more policies. Each policy defines actions a user is allowed to perform on resources.

Roles are then assigned to groups.

Role Policies

Policies are resource-based. They are YAML documents attached to a role.

Each policy has:

  1. Action

  2. Resource

  3. Effect

circle-exclamation

Action

The action describes the action or verb that a user can perform. The format of the action is

service:operation

For example, to list topics in Kafka:

policy:
  - action:
      - kafka:ListTopics
circle-info

For a full list of the actions see Permission Reference.

To allow all actions set '*'

Resource

Resources scope a policy to specific entities. For example, to only allow topics that start with red, use the resource field.

circle-info

For a full list of the actions see Permission Reference.

To allow all actions set '*'

Effect

Effect is either allow the action on the resource or deny. If allow is not set the action will be denied and if any policy for a resource has a deny effect it takes precedence.

Create a Role

To create a role, go to IAM → Roles → New Role.

Create a role and add permissions

You can also manage roles via the CLI and YAML, for CI/CD automation.

Last updated

Was this helpful?