Interface define the object to create an execution role

interface ExecutionRoleDefinition {
    excutionRoleIamPolicy?: IManagedPolicy;
    executionRoleIamPolicyStatement?: PolicyStatement[];
    executionRoleName: string;
}

Properties

excutionRoleIamPolicy?: IManagedPolicy

The IAM policy to use with IAM role if it already exists Can be initialized for example by fromPolicyName in Policy class

executionRoleIamPolicyStatement?: PolicyStatement[]

Takes an array of IAM Policy Statement, you should pass this if you want the Team to create the policy along the IAM role

executionRoleName: string

The name of the IAM role to create, this name is used as base for the excution Role name The name will have the following format after deployment: NAME-AWS-REGION-EKS-CLUSTER-NAME.