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

aws.sagemaker.notebookinstance -> ERROR - cannot convert primitive with NO type information #3032

Closed
mm-weber opened this issue Jan 15, 2024 · 1 comment
Assignees
Labels
aws bug Something isn't working

Comments

@mm-weber
Copy link
Contributor

image

Description

aws.sagemaker.notebookInstances returns details, whereas aws.sagemaker.notebookinstance fails to return that data.

cnspec> aws.sagemaker.notebookInstances {details {*}}
aws.sagemaker.notebookInstances: [
  0: {
    details: {
      directInternetAccess: "Enabled"
      kmsKey: null
      arn: "arn:aws:sagemaker:us-east-1:921877552404:notebook-instance/note"
    }
  }
]

To reproduce

Example 1:

cnspec> aws.sagemaker.notebookinstance.details
1 error occurred:
	* cannot convert primitive with NO type information
aws.sagemaker.notebookinstance.details: aws.sagemaker.notebookinstance.details arn=null

Example 2:

cnspec> aws.sagemaker.notebookinstance.details.arn
cannot convert primitive with NO type information
aws.sagemaker.notebookinstance.details.arn: null

Example 3:

cnspec> aws.sagemaker.notebookinstance.details.kmsKey
1 error occurred:
	* rpc error: code = Unknown desc = resource 'aws.kms.key' (id: ) doesn't exist
aws.sagemaker.notebookinstance.details.kmsKey: aws.kms.key id=no data available region=no data available metadata.Description=no data available

Example 4:

cnspec> aws.sagemaker.notebookinstance.details.directInternetAccess
cannot convert primitive with NO type information
aws.sagemaker.notebookinstance.details.directInternetAccess: null

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots or CLI Output

Desktop (please complete the following information):

cnquery v9.14.0 (3c1bfaddb, unknown)

Additional context
Add any other context about the problem here.

@vjeffrey
Copy link
Contributor

cnquery> aws.sagemaker.notebookinstance { details { * } }
aws.sagemaker.notebookinstance: {
  details: {
    kmsKey: null
    directInternetAccess: "Enabled"
    arn: "arn:aws:sagemaker:us-east-1:-:notebook-instance/test"
  }
}

this seems to work fine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
aws bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants