mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-10-30 15:24:22 +00:00
feat(opensearch): add data_nodes_count attribute to OpenSearchDomain
This commit is contained in:
1 parent
0a75f25d7c
commit
b31c20b6a3
1 file changed
+6
@@ -141,6 +141,11 @@ class OpenSearchService(AWSService):
|
||||
.get("ClusterConfig", {})
|
||||
.get("DedicatedMasterCount", 0)
|
||||
)
|
||||
domain.data_nodes_count = (
|
||||
describe_domain["DomainStatus"]
|
||||
.get("ClusterConfig", {})
|
||||
.get("InstanceCount", 0)
|
||||
)
|
||||
except Exception as error:
|
||||
logger.error(
|
||||
f"{regional_client.region} -- {error.__class__.__name__}[{error.__traceback__.tb_lineno}]: {error}"
|
||||
@@ -185,4 +190,5 @@ class OpenSearchDomain(BaseModel):
|
||||
advanced_settings_enabled: bool = None
|
||||
dedicated_master_enabled: Optional[bool]
|
||||
dedicated_master_count: Optional[int]
|
||||
data_nodes_count: Optional[int]
|
||||
tags: Optional[list] = []
|
||||
Reference in new issue
Block a user