Changeset View
Changeset View
Standalone View
Standalone View
python_modules/libraries/dagster-aws/dagster_aws/ecs/launcher.py
Show All 15 Lines | class TaskMetadata: | ||||
subnets: List[str] | subnets: List[str] | ||||
security_groups: List[str] | security_groups: List[str] | ||||
task_definition: Dict[str, Any] | task_definition: Dict[str, Any] | ||||
container_definition: Dict[str, Any] | container_definition: Dict[str, Any] | ||||
@experimental | @experimental | ||||
class EcsRunLauncher(RunLauncher, ConfigurableClass): | class EcsRunLauncher(RunLauncher, ConfigurableClass): | ||||
def __init__(self, inst_data=None, boto3_client=boto3.client("ecs")): | def __init__(self, inst_data=None, task_definition=None): | ||||
self._inst_data = inst_data | self._inst_data = inst_data | ||||
self.ecs = boto3_client | self.ecs = boto3.client("ecs") | ||||
self.ec2 = boto3.resource("ec2") | self.ec2 = boto3.resource("ec2") | ||||
self.task_definition = task_definition | |||||
@property | @property | ||||
def inst_data(self): | def inst_data(self): | ||||
return self._inst_data | return self._inst_data | ||||
@classmethod | @classmethod | ||||
def config_type(cls): | def config_type(cls): | ||||
return {} | return {} | ||||
▲ Show 20 Lines • Show All 181 Lines • Show Last 20 Lines |