stale-tomato-37875
01/06/2025, 12:40 AM@pulumi/eks
?
I tried to switch the skipDefaultNodeGroup
from false
to true
however I saw
error: ResourceError: an instanceProfile is required
at /Users/c.shen/GitRepos/brainfish-ai/brainfish-universe-infrastructure/compute/eks/node_modules/@pulumi/nodegroup.ts:966:19
at /Users/c.shen/GitRepos/brainfish-ai/brainfish-universe-infrastructure/compute/eks/node_modules/@pulumi/output.ts:490:31
at Generator.next (<anonymous>)
at /Users/c.shen/GitRepos/brainfish-ai/brainfish-universe-infrastructure/compute/eks/node_modules/@pulumi/pulumi/output.js:21:71
at new Promise (<anonymous>)
at __awaiter (/Users/c.shen/GitRepos/brainfish-ai/brainfish-universe-infrastructure/compute/eks/node_modules/@pulumi/pulumi/output.js:17:12)
at applyHelperAsync (/Users/c.shen/GitRepos/brainfish-ai/brainfish-universe-infrastructure/compute/eks/node_modules/@pulumi/pulumi/output.js:298:12)
at /Users/c.shen/GitRepos/brainfish-ai/brainfish-universe-infrastructure/compute/eks/node_modules/@pulumi/output.ts:352:13
at processTicksAndRejections (node:internal/process/task_queues:95:5)
I believe this is expected as if the NodeGroup has been created initially, the lingering resources would be traversed anyway. Without instanceProfile in place (as it's going to be removed by skipDefaultNodeGroup set to true), the validation fails.
So my question is: if there is a proofed way to remove previously created default Node Group?quick-house-41860
01/06/2025, 9:59 AMskipDefaultNodeGroup
this is no longer the case.
Just speculating without knowing the code, but could you try setting createInstanceRole
on the cluster or alternatively pass an instance profile to the explicit node groups you're creatingstale-tomato-37875
01/06/2025, 11:10 PM@pulumi/eks
v2.
This logic improved in v3 by you where instanceProfile and instanceRole are handled in the same bracket pairs.
This is great for users who want to enable skipDefaultNodeGroups
while still creating NodeGroups using Pulumi Crosswalk!