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.
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.