private get _defaultJobFlowRoleProfile()

in source/lib/cdk-solution-stack.ts [84:95]


  private get _defaultJobFlowRoleProfile(): iam.CfnInstanceProfile {
    return new iam.CfnInstanceProfile(this, 'EMRClusterinstanceProfile', {
      roles: [
        new iam.Role(this, 'EMRClusterinstanceProfileRole', {
          assumedBy: new iam.ServicePrincipal('ec2.amazonaws.com'),
          managedPolicies: [
            iam.ManagedPolicy.fromAwsManagedPolicyName('service-role/AmazonElasticMapReduceforEC2Role'),
          ],
        }).roleName,
      ],
    });
  }