You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
opensearch module fails to update existing domains with the following error:
Couldn't update domain example-name: Parameter validation failed:\nUnknown parameter in AIMLOptions.NaturalLanguageQueryGenerationOptions: \"CurrentState\", must be one of: DesiredState
I believe this happens because describe_domain_config method returns the following values under AIMLOptions.Options.NaturalLanguageQueryGenerationOptions:
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: Unknown parameter in AIMLOptions.NaturalLanguageQueryGenerationOptions: "CurrentState", must be one of: DesiredStatefatal: [localhost]: FAILED! => {"boto3_version": "1.35.29", "botocore_version": "1.35.29", "changed": false, "msg": "Couldn't update domain example-name: Parameter validation failed:\nUnknown parameter in AIMLOptions.NaturalLanguageQueryGenerationOptions: \"CurrentState\", must be one of: DesiredState"}
Code of Conduct
I agree to follow the Ansible Code of Conduct
The text was updated successfully, but these errors were encountered:
Summary
opensearch module fails to update existing domains with the following error:
I believe this happens because
describe_domain_config
method returns the following values underAIMLOptions.Options.NaturalLanguageQueryGenerationOptions
:whereas
update_domain_config
method expects onlyDesiredState
:I believe this can be fixed by removing
CurrentState
inget_domain_config
method inplugins/module_utils/opensearch.py
Issue Type
Bug Report
Component Name
opensearch
Ansible Version
Collection Versions
AWS SDK versions
Configuration
No response
OS / Environment
No response
Steps to Reproduce
Expected Results
Opensearch domain is updated.
Actual Results
Code of Conduct
The text was updated successfully, but these errors were encountered: