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

When asking questions to Q about CDK python many responses include functions or attributes that do not exist. How can this behaviour be avoided? #4946

Open
yaircarel opened this issue May 7, 2024 · 0 comments
Labels
amazonq guidance General information and guidance, answers to FAQs, or recommended best practices/resources.

Comments

@yaircarel
Copy link

System details (run AWS: About and/or Amazon Q: About)

OS: Darwin arm64 23.4.0
Visual Studio Code extension host: 1.89.0
Amazon Q: 1.2.0
node: 18.18.2
electron: 28.2.8

Question

Sample question:
"How do I get the CNAME record values for an ACM certificate created in CDK Python?"

The response is (only part of it):
cname_records = cert.get_resource_record_set()
cert is an object of type aws_cdk.aws_certificatemanager

The documentation for this construct is
https://docs.aws.amazon.com/cdk/api/v2/python/aws_cdk.aws_certificatemanager/Certificate.html

The documentation clearly shows Certificate has no member of get_resource_record_set()

I have encountered so many instances of this behaviour that Q is almost unusable for anything but trivial questions on CDK.

@yaircarel yaircarel added the guidance General information and guidance, answers to FAQs, or recommended best practices/resources. label May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
amazonq guidance General information and guidance, answers to FAQs, or recommended best practices/resources.
Projects
None yet
Development

No branches or pull requests

2 participants