https://pulumi.com logo
#general
Title
# general
d

dry-teacher-74595

08/16/2021, 4:18 PM
l

little-cartoon-10569

08/16/2021, 9:11 PM
Can you clarify your expectations? Do you want the provider opt to be available as a property on the class?
d

dry-teacher-74595

08/19/2021, 8:52 PM
yes only because thats what it looked like it was a output of in document
Copy code
// Create an EKS cluster with the default configuration.
const cluster = new eks.Cluster("my-cluster");

// skipping like 15 lines of code
       }
    },
}, { provider: cluster.provider });
l

little-cartoon-10569

08/19/2021, 10:10 PM
In that case, provider is an opt, not an arg. It's a member of the object passed in as the 3rd parameter, not the 2nd parameter. provider is not a member of eks.Cluster, it's a member of ResourceOptions.
The documentation is correct.
2 Views