Open derekbelrose opened 10 months ago
Voting for Prioritization
Volunteering to Work on This Issue
I am having the same exact problem as you as I cannot set max_content_size_per_page_in_mega_bytes.
Also, working with AWS support, we found out the settings tab is showing blank because the console is looking for some values, which are indeed not optional per the docs. AWS said that will be updating these docs. To confirm what does work, you can create a json config file, and create a data source from the AWS CLI.
skeleton.json - https://gist.github.com/byuniqueman/2c007a4880d9ce19bbe5174253f905d4
aws kendra create-data-source --cli-input-json file://skeleton.json
At this point the data source should be viewable in the settings tab
So with the "MaxContentSizePerPageInMegaBytes" broken in Terraform, I am at a standstill in terms of using Terraform to deploy any Kendra data sources at this point, since it's seems to be a requirement currently for the UI.
Could this be because MaxContentSizePerPageInMegaBytes passed to expandWebCrawlerConfiguration is not a valid float and is taking the default float32 value (0.0). :thinking:
I am having the same exact problem as you as I cannot set max_content_size_per_page_in_mega_bytes.
Also, working with AWS support, we found out the settings tab is showing blank because the console is looking for some values, which are indeed not optional per the docs. AWS said that will be updating these docs. To confirm what does work, you can create a json config file, and create a data source from the AWS CLI.
skeleton.json - https://gist.github.com/byuniqueman/2c007a4880d9ce19bbe5174253f905d4
aws kendra create-data-source --cli-input-json file://skeleton.json
At this point the data source should be viewable in the settings tab
So with the "MaxContentSizePerPageInMegaBytes" broken in Terraform, I am at a standstill in terms of using Terraform to deploy any Kendra data sources at this point, since it's seems to be a requirement currently for the UI.
I verified with AWS support that this isn't a issue in V2 of the Webcrawler. There is no plans to fix V1 since it's on a deprecation path, so no effort will be put into that to fix the issue. A deprecation notice for V1 will be released soon.
Does the provider support the v2 webcrawler type? All I see is reference to the WEBCRAWLER type.
@byuniqueman Does your verification have any implication on how I might be able to get this to work at this point in time? I am not aware of any way for me to create V2 TemplateConfiguration style data sources (referenced in #29922).
Terraform Core Version
1.5.6
AWS Provider Version
5.13.0
Affected Resource(s)
Expected Behavior
Here is my declared data source:
I expect the above to create the resource and not have to be applied in subsequent plan/apply runs. I, also, expect that I can verify that the settings were applied within the AWS Amazon Kendra Console settings.
Actual Behavior
This creates a few issues when run
terraform plan
after a recent apply:Then, after applying the above, it will change 0 to 25, but a second plan/apply repeats the same behavior. The relevant DEBUG info can be found in the section below.
Also, the AWS console interface shows a blank page when trying to view the settings for the data source that the above snippet creates.
The error in the javascript on the console can be found as the first file in the relevant gist as well as a screenshot of the Chrome session with the broken AWS console.
Relevant Error/Panic Output Snippet
Terraform Configuration Files
https://gist.github.com/derekbelrose/5ff38fbfe6ef685642f1cc7fe1e976a2
Steps to Reproduce
Debug Output
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
None