question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

(aws-kendra): Datasource type "WEBCRAWLER" returns model validation error

See original GitHub issue

Description of the bug: Creating a datasource of type " WEBCRAWLER" with CfnDataSource returns the following error Resource handler returned message: "Model validation failed ( #/Type: # only 1 subschema matches out of 2) #Type: failed validation constraint for keyword [enum] (#/Type) RequestToken:

Reproduction Steps

     self.indexKendra = kendra.CfnIndex(
            self, 'KendraIndex',
            edition = 'DEVELOPER_EDITION',
            name = 'index'
        )
        self.datasourceKendra = kendra.CfnDataSource(
            self, 'datasource',
            name = 'datasource',
            index_id = self.indexKendra.attr_id,
            type = 'WEBCRAWLER'
        )

What did you expect to happen?

  • Kendra index and webcrawler created.

What actually happened?

Error message as listed above.

Environment

  • CDK CLI Version :1.114.0
  • Language (Version): Python 3.8 Screen Shot 2021-08-23 at 3 24 18 PM

This is 🐛 Bug Report

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
BenChaimbergcommented, Sep 28, 2021

@quixoticmonk Given that the service API has a type named WebCrawlerConfiguration, I would imagine a similar type will need to become available in the CFN spec in order for you to properly specify this resource.

However, since the model is technically not throwing errors anymore, this issue can probably be closed. Further, an automatic CFN spec update will add any new resources or types so there is no real need to track this. @skinny85 can make the call!

1reaction
quixoticmonkcommented, Aug 27, 2021

The change on the cloudformation side is merged in. Is there a change needed on the CDK side to ingest these additional types ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting data sources - Amazon Kendra
This section can help you fix issues with Amazon Kendra data sources. My documents were not indexed. When you synchronize your Kendra index...
Read more >
Response types - Amazon Kendra
Amazon Kendra returns three types of query response. ... The type of the response is returned in the Type response field of the...
Read more >
Web crawler - Amazon Kendra - AWS Documentation
If you receive an error when crawling a website, it could be that the website is blocked from crawling. To crawl internal websites,...
Read more >
What is Amazon Kendra?
Amazon Kendra is an Amazon Web Services service that supports natural language and intelligent search across documents. You can index and search many...
Read more >
Adding frequently asked questions (FAQs) directly to an index
You can add frequently asked questions (FAQs) directly to your index using the console or the API. Adding FAQs to an index is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found