https://pulumi.com logo
Title
t

tall-beard-99429

07/29/2021, 9:19 AM
Hey, does anyone have an example of
ClusterCreationRoleProvider
and how to use it to assume-role?
Anyone got any ideas?
b

bored-oyster-3147

07/29/2021, 12:58 PM
I'm not even sure what that is - is that for an ASG? Or is for EKS? I can't find anything by that name in the aws provider
t

tall-beard-99429

07/29/2021, 1:37 PM
EKS, its in the EKS package
Basically, I want to create a cluster using an assumed-role, which when using the AWS package, I can do using
provider: <provider>
in the opts, but that doesn't seem to work in the EKS package
b

bored-oyster-3147

07/29/2021, 2:02 PM
Hmmm I'm not entirely sure as I haven't used that package but you can follow along with the code here . It looks like there is some logic for determining which provider to use (whether via args or customresourceoptions). So that is the cluster constructor and then here is the constructor for the
ClusterCreationRoleProvider
so you can see how it actually makes that provider & role
g

great-sunset-355

07/29/2021, 6:07 PM
@tall-beard-99429 I'd recommend searching terraform example as well since AWS provider sdk originates from that
t

tall-beard-99429

07/30/2021, 9:41 AM
Ok i think i have it mostly working, however it is giving me a 403 when trying to create the cluster on EKS, any ideas? The role has the correct eks:* permissions