Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pulumi-eks: referencing cluster.id does not return a value #551

Closed
MitchellGerdisch opened this issue Mar 8, 2021 · 5 comments
Closed
Labels
1.0 kind/bug Some behavior is incorrect or out of spec resolution/duplicate This issue is a duplicate of another issue

Comments

@MitchellGerdisch
Copy link

I have a cluster declaration in python as follows:

cluster = Cluster(
    f"{proj_name}-eks",
    fargate=FargateProfileArgs(selectors=[
        FargateProfileSelectorArgs(namespace=app_namespace_name),
        FargateProfileSelectorArgs(namespace=sys_namespace_name),
        FargateProfileSelectorArgs(namespace=alb_controller_namespace_name),
    ]),
    vpc_id=vpc_id,
    private_subnet_ids = priv_subnet_ids,
    create_oidc_provider=True,
    version="1.19",
)

If I try to reference cluster.id it does not return any value.
Using cluster.id.apply() throws an error that cluster.id does not support apply().

cluster.core.clsuter.id does return the expected value.

Expected behavior

cluster.id should return a value as per the documentation.
Or the documentation should be updated to remove the "id" output property.

Current behavior

See above.

Steps to reproduce

  1. Create an eks cluster use the eks extension package.
  2. Try to access "cluster.id"

Context (Environment)

Either the documentation is wrong or the the provider should return cluster.id
The fact that cluster.core.cluster.id works means this is not a critical issue.

Affected feature

@MitchellGerdisch MitchellGerdisch added the kind/bug Some behavior is incorrect or out of spec label Mar 8, 2021
@lukehoban
Copy link
Member

If I try to reference cluster.id it does not return any value.

That's right - there is no id property on eks.Cluster (or in general, on any ComponentResource).

Either the documentation is wrong or the the provider should return cluster.id

Which documentation suggested this? It does sound like that documentation is wrong.

@stack72 stack72 added the resolution/no-repro This issue wasn't able to be reproduced label Jul 27, 2022
@stack72
Copy link
Contributor

stack72 commented Jul 27, 2022

I am going to close this out - I can't find any instance where there are cluster.id references in our registry. If you can point to a specific place then we can try and fix that up to

@stack72 stack72 closed this as completed Jul 27, 2022
@MitchellGerdisch
Copy link
Author

Sorry - I should have added the docs reference originally.
The pulumi-eks package docs show an id Output:
https://www.pulumi.com/registry/packages/eks/api-docs/cluster/#outputs

@stack72 stack72 reopened this Jul 27, 2022
@stack72
Copy link
Contributor

stack72 commented Jul 27, 2022

Thanks @MitchellGerdisch - I will file this as a bug

@stack72 stack72 added 1.0 and removed resolution/no-repro This issue wasn't able to be reproduced labels Jul 27, 2022
@danielrbradley danielrbradley added the resolution/duplicate This issue is a duplicate of another issue label Nov 23, 2022
@danielrbradley
Copy link
Member

This is a documentation generation issue. I've filed this as a separate bug on that side.

Closing as a duplicate of pulumi/pulumi#11462

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.0 kind/bug Some behavior is incorrect or out of spec resolution/duplicate This issue is a duplicate of another issue
Projects
None yet
Development

No branches or pull requests

4 participants