diff --git a/serverless/panther-preflight-tools/readiness-check/src/app.py b/serverless/panther-preflight-tools/readiness-check/src/app.py index d762373..d5ce150 100644 --- a/serverless/panther-preflight-tools/readiness-check/src/app.py +++ b/serverless/panther-preflight-tools/readiness-check/src/app.py @@ -165,14 +165,14 @@ def check_s3_select_readiness() -> bool: return s3check.is_enabled() -def lambda_handler(_: dict[str, Any], __: Any) -> str: +def lambda_handler(_: dict[str, Any], __: Any) -> dict: """ Lambda entrypoint. Accepts no input values. The "where" of it's running is the most important aspect. """ return { - 'deployment_role_readiness_results': check_deployment_role_readiness(_, __), + 'deployment_role_readiness_results': check_deployment_role_readiness(), 's3_select_enabled': check_s3_select_readiness() } diff --git a/serverless/panther-preflight-tools/readiness-check/src/s3_select_check.py b/serverless/panther-preflight-tools/readiness-check/src/s3_select_check.py index 4a67948..6d3a877 100644 --- a/serverless/panther-preflight-tools/readiness-check/src/s3_select_check.py +++ b/serverless/panther-preflight-tools/readiness-check/src/s3_select_check.py @@ -77,8 +77,7 @@ def is_enabled(self) -> bool: def _setup_bucket(self): self.log.info(f'setting up test s3 bucket ({self.test_bucket_name})') - self.s3.create_bucket(Bucket=self.test_bucket_name, CreateBucketConfiguration={ - 'LocationConstraint': self.test_bucket_region}) + self.s3.create_bucket(Bucket=self.test_bucket_name) def _cleanup_bucket(self): self.log.info(f'cleaning up test s3 bucket ({self.test_bucket_name})')