Skip to content
This repository was archived by the owner on Dec 14, 2023. It is now read-only.
This repository was archived by the owner on Dec 14, 2023. It is now read-only.

Attach AWS predefined policy to role #21

@uanid

Description

@uanid

AWS IAM Role allows attach predefined policy ARN to role.
I suggest make a feature attach predefined policy to IRSA role.

Propose

Before

apiVersion: irsa.voodoo.io/v1alpha1
kind: IamRoleServiceAccount
metadata:
  name: sample-sa
spec:
  policy:
    statement:
      - action:
          - s3:ListBucket
        resource: arn:aws:s3:::example_bucket

After

apiVersion: irsa.voodoo.io/v1alpha1
kind: IamRoleServiceAccount
metadata:
  name: sample-sa
spec:
  policy:
    preDefinedArns:
    - arn:aws:iam::123456789012:policy/ManageCredentialsPermissions
    - arn:aws:iam::123456789012:policy/UsersManageOwnCredentials
    statement:
      - action:
          - s3:ListBucket
        resource: arn:aws:s3:::example_bucket

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions