Skip to content

cluster.eksCluster is an Output and other resources too #1727

@1oglop1

Description

@1oglop1

Describe what happened

eksCluster property is an output and therefore cannot be made a parent, I think that resources should never be outputs unless there is no other way around it.
When resource is an output, it creates a nested Output<Output> which forces the user into an anti pattern of creating resources during apply.

https://github.com/pulumi/pulumi-eks/blame/385ec2a620e0bb83497bd970e68a82f41abfa022/nodejs/eks/cluster/cluster.ts#L2265

This is directly related to #1466, if resources weren't outputs, the workaround to use the cluster as a parent would be simple.

Sample program

Log output

No response

Affected Resource(s)

No response

Output of pulumi about

Additional context

No response

Contributing

Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSome behavior is incorrect or out of spec

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions