From d6a484a060044788c2e5bdae77b2d0c04cd3217e Mon Sep 17 00:00:00 2001 From: sharkinsspatial Date: Tue, 7 May 2024 11:50:31 -0600 Subject: [PATCH] Make debug_bucket argument optional for state machines. --- stack/hlsconstructs/landsat_mgrs_step_function.py | 2 +- stack/hlsconstructs/landsat_step_function.py | 2 +- stack/hlsconstructs/sentinel_errors_step_function.py | 2 +- stack/hlsconstructs/sentinel_step_function.py | 2 +- stack/stack.py | 5 +---- 5 files changed, 5 insertions(+), 8 deletions(-) diff --git a/stack/hlsconstructs/landsat_mgrs_step_function.py b/stack/hlsconstructs/landsat_mgrs_step_function.py index 023a2ce..6b99ba1 100644 --- a/stack/hlsconstructs/landsat_mgrs_step_function.py +++ b/stack/hlsconstructs/landsat_mgrs_step_function.py @@ -21,7 +21,7 @@ def __init__( mgrs_logger: Lambda, get_random_wait: Lambda, gibs_outputbucket: str, - debug_bucket: Union[bool, str], + debug_bucket: Union[bool, str] = False, **kwargs, ) -> None: super().__init__(scope, id, **kwargs) diff --git a/stack/hlsconstructs/landsat_step_function.py b/stack/hlsconstructs/landsat_step_function.py index 536a59c..c72c7ad 100644 --- a/stack/hlsconstructs/landsat_step_function.py +++ b/stack/hlsconstructs/landsat_step_function.py @@ -25,7 +25,7 @@ def __init__( get_random_wait: Lambda, replace_existing: bool, landsat_mgrs_step_function_arn: str, - debug_bucket: Union[bool, str], + debug_bucket: Union[bool, str] = False, **kwargs, ) -> None: super().__init__(scope, id, **kwargs) diff --git a/stack/hlsconstructs/sentinel_errors_step_function.py b/stack/hlsconstructs/sentinel_errors_step_function.py index 3907e1f..b780181 100644 --- a/stack/hlsconstructs/sentinel_errors_step_function.py +++ b/stack/hlsconstructs/sentinel_errors_step_function.py @@ -20,7 +20,7 @@ def __init__( update_sentinel_failure: Lambda, get_random_wait: Lambda, gibs_outputbucket: str, - debug_bucket: Union[bool, str], + debug_bucket: Union[bool, str] = False, **kwargs, ) -> None: super().__init__(scope, id, **kwargs) diff --git a/stack/hlsconstructs/sentinel_step_function.py b/stack/hlsconstructs/sentinel_step_function.py index e193720..ae19ce0 100644 --- a/stack/hlsconstructs/sentinel_step_function.py +++ b/stack/hlsconstructs/sentinel_step_function.py @@ -23,7 +23,7 @@ def __init__( check_exit_code: Lambda, replace_existing: bool, gibs_outputbucket: str, - debug_bucket: Union[bool, str], + debug_bucket: Union[bool, str] = False, **kwargs, ) -> None: super().__init__(scope, id, **kwargs) diff --git a/stack/stack.py b/stack/stack.py index ac4c9c5..19ebafa 100644 --- a/stack/stack.py +++ b/stack/stack.py @@ -595,6 +595,7 @@ def __init__(self, scope: core.Construct, id: str, **kwargs) -> None: outputbucket_role_arn=OUTPUT_BUCKET_ROLE_ARN, gibs_outputbucket=GIBS_OUTPUT_BUCKET, get_random_wait=self.get_random_wait, + debug_bucket=DEBUG_BUCKET, ) self.sentinel_errors_step_function_historic = SentinelErrorsStepFunction( @@ -638,8 +639,6 @@ def __init__(self, scope: core.Construct, id: str, **kwargs) -> None: pr2mgrs=self.pr2mgrs_lambda, mgrs_logger=self.mgrs_logger, get_random_wait=self.get_random_wait, - gibs_outputbucket=GIBS_OUTPUT_BUCKET, - debug_bucket=DEBUG_BUCKET, ) self.landsat_mgrs_step_function_historic = LandsatMGRSStepFunction( @@ -654,7 +653,6 @@ def __init__(self, scope: core.Construct, id: str, **kwargs) -> None: pr2mgrs=self.pr2mgrs_lambda, mgrs_logger=self.mgrs_logger, get_random_wait=self.get_random_wait, - gibs_outputbucket=GIBS_OUTPUT_BUCKET_HISTORIC, ) self.landsat_mgrs_partials_step_function_historic = ( @@ -670,7 +668,6 @@ def __init__(self, scope: core.Construct, id: str, **kwargs) -> None: pr2mgrs=self.pr2mgrs_lambda, mgrs_logger=self.mgrs_logger, get_random_wait=self.get_random_wait, - gibs_outputbucket=GIBS_OUTPUT_BUCKET_HISTORIC, ) )