Island: Add run_agent_on_managed_instances() to AWSService

This commit is contained in:
Mike Salvatore 2022-05-09 09:22:33 -04:00
parent 0f4b69a6f7
commit acabc835d4
1 changed files with 8 additions and 1 deletions

View File

@ -1,5 +1,5 @@
import logging import logging
from typing import Optional from typing import Iterable, Optional
import boto3 import boto3
import botocore import botocore
@ -26,6 +26,13 @@ class AWSService:
def island_aws_instance(self) -> AWSInstance: def island_aws_instance(self) -> AWSInstance:
return self._aws_instance return self._aws_instance
def run_agent_on_managed_instances(self, instance_ids: Iterable[str]):
for id_ in instance_ids:
self._run_agent_on_managed_instance(id_)
def _run_agent_on_managed_instance(self, instance_id: str):
pass
def filter_instance_data_from_aws_response(response): def filter_instance_data_from_aws_response(response):
return [ return [