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

EKS - describe_cluster has incorrect parameter name #3815

Closed
durgajay opened this issue Aug 9, 2023 · 4 comments
Closed

EKS - describe_cluster has incorrect parameter name #3815

durgajay opened this issue Aug 9, 2023 · 4 comments
Assignees
Labels
documentation This is a problem with documentation. emr p3 This is a minor priority issue response-requested Waiting on additional information or feedback.

Comments

@durgajay
Copy link

durgajay commented Aug 9, 2023

Describe the issue

The parameter ClusterId is incorrect for the function describe_cluster, the code fails with the message Parameter validation failed: Missing required parameter in input: "name" Unknown parameter in input: "ClusterId", must be one of: name

Links

https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/emr/client/describe_cluster.html

@durgajay durgajay added documentation This is a problem with documentation. needs-triage This issue or PR still needs to be triaged. labels Aug 9, 2023
@RyanFitzSimmonsAK RyanFitzSimmonsAK self-assigned this Aug 9, 2023
@RyanFitzSimmonsAK RyanFitzSimmonsAK added response-requested Waiting on additional information or feedback. p3 This is a minor priority issue and removed needs-triage This issue or PR still needs to be triaged. response-requested Waiting on additional information or feedback. labels Aug 9, 2023
@RyanFitzSimmonsAK
Copy link
Contributor

Hi @durgajay, thanks for reaching out. I had some trouble reproducing the error you got. Could you tell me what version of Boto3 you're on, as well as provide a code snippet showing how you're calling it? Thanks!

@RyanFitzSimmonsAK RyanFitzSimmonsAK added response-requested Waiting on additional information or feedback. and removed documentation This is a problem with documentation. labels Aug 9, 2023
@durgajay
Copy link
Author

durgajay commented Aug 10, 2023

Hello,

Here is the sample code that fails

    eks_client       = boto3.client("eks")
    vpc_info_resp    = eks_client.describe_cluster(ClusterId="test-cluster")
    vpc_id           = vpc_info_resp['cluster']['resourcesVpcConfig']['vpcId']
    print(vpc_id)

changing line # 2 to below works.

    vpc_info_resp    = eks_client.describe_cluster(name="test-cluster")

Below is the snippet from the documentation and as you notice ClusterId is not a valid parameter.
describe_cluster
EMR.Client.describe_cluster(**kwargs)

Provides cluster-level details including status, hardware and software configuration, VPC settings, and so on.

See also: AWS API Documentation
Request Syntax

response = client.describe_cluster(
    ClusterId='string'
)

Parameters:
ClusterId (string) –
[REQUIRED]
The identifier of the cluster to describe.

@RyanFitzSimmonsAK
Copy link
Contributor

Hi @durgajay, thanks for following up. The documentation you linked is for EMR, while the command you are trying to use is for EKS. The EKS describe-cluster operation does use name as a parameter (https://awscli.amazonaws.com/v2/documentation/api/latest/reference/eks/describe-cluster.html). Hope that helps, please let me know if you have any follow-up questions.

@durgajay
Copy link
Author

Apologies, it was my bad... had multiple windows open :)

@RyanFitzSimmonsAK RyanFitzSimmonsAK added the documentation This is a problem with documentation. label Nov 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation This is a problem with documentation. emr p3 This is a minor priority issue response-requested Waiting on additional information or feedback.
Projects
None yet
Development

No branches or pull requests

2 participants