(aws-kendra): Datasource type "WEBCRAWLER" returns model validation error
See original GitHub issueDescription 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
- Create a amazon kendra index using CfnIndex
- Add a data source using CfnDataSource with type set to “WEBCRAWLER” https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kendra-datasource.html#cfn-kendra-datasource-type
- Deploy the index and data source to the AWS account
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
This is 🐛 Bug Report
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:12 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@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!
The change on the cloudformation side is merged in. Is there a change needed on the CDK side to ingest these additional types ?