@aws-quickstart/eks-blueprints
    Preparing search index...

    Function getNamedResource

    • Creates a proxy to the named resource provider. This proxy will resolve to the type of the resource provider under the provided name. It enables getting references to resources outside of the Stack construct and using them with the blueprint:

      Type Parameters

      • T extends IConstruct = IConstruct

      Parameters

      • resourceName: string

      Returns T

      const app = new cdk.App();
      const adminRole: iam.IRole = blueprints.getNamedResource("my-admin-role""); // note, there is no stack class here

      const clusterProvider = new blueprints.GenericClusterProvider({
      mastersRole: adminRole,
      ... other props
      });