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
Describe the bug
Amazon_ElasticsearchService_Auditor throws errors around parameter validation. Following error is encountered: botocore.exceptions.ParamValidationError: Parameter validation failed: Invalid type for parameter DomainName, value: {'DomainName': 'unified-logging-es-prod', 'EngineType': 'OpenSearch'}, type: <class 'dict'>, valid types: <class 'str'>"
The error is actually caused by the way the describe_elasticsearch_domain method is called within the describe_es_os_domains function.
The describe_elasticsearch_domain method expects the DomainName parameter to be passed as a string, not as a dictionary. However, in your case, it seems that the domain variable (which is an element in the list returned by elasticsearch.list_domain_names()["DomainNames"]) is a dictionary containing DomainName and EngineType keys.
To resolve the issue, you should modify the describe_es_os_domains function to extract the DomainName string from the domain dictionary before passing it to the describe_elasticsearch_domain method.
Describe the bug
Amazon_ElasticsearchService_Auditor throws errors around parameter validation. Following error is encountered:
botocore.exceptions.ParamValidationError: Parameter validation failed: Invalid type for parameter DomainName, value: {'DomainName': 'unified-logging-es-prod', 'EngineType': 'OpenSearch'}, type: <class 'dict'>, valid types: <class 'str'>"
The error is actually caused by the way the describe_elasticsearch_domain method is called within the describe_es_os_domains function.
The describe_elasticsearch_domain method expects the DomainName parameter to be passed as a string, not as a dictionary. However, in your case, it seems that the domain variable (which is an element in the list returned by elasticsearch.list_domain_names()["DomainNames"]) is a dictionary containing DomainName and EngineType keys.
To resolve the issue, you should modify the describe_es_os_domains function to extract the DomainName string from the domain dictionary before passing it to the describe_elasticsearch_domain method.
The following code change fixes the issue:
The text was updated successfully, but these errors were encountered: