awslabs / aws-securityhub-multiaccount-scripts

This script automates the process of running the Security Hub multi-account workflow across a group of accounts that are in your control
MIT No Attribution
271 stars 108 forks source link

Invalid length for parameter StandardsSubscriptionRequests #37

Open LewisYates opened 4 years ago

LewisYates commented 4 years ago

Getting the following error when executing the codebuild job to enable multiple accounts:

Full Output: Traceback (most recent call last): File "enablesecurityhub.py", line 351, in sh_client.batch_enable_standards(StandardsSubscriptionRequests=batch_enable_standards_input) File "/usr/local/lib/python2.7/dist-packages/botocore/client.py", line 316, in _api_call return self._make_api_call(operation_name, kwargs) File "/usr/local/lib/python2.7/dist-packages/botocore/client.py", line 599, in _make_api_call api_params, operation_model, context=request_context) File "/usr/local/lib/python2.7/dist-packages/botocore/client.py", line 647, in _convert_to_request_dict api_params, operation_model) File "/usr/local/lib/python2.7/dist-packages/botocore/validate.py", line 297, in serialize_to_request raise ParamValidationError(report=report.generate_report()) botocore.exceptions.ParamValidationError: Parameter validation failed: Invalid length for parameter StandardsSubscriptionRequests, value: 0, valid range: 1-inf

avishayil commented 4 years ago

I'm experiencing this issue as well

ssteo commented 4 years ago

Encountered the same issue as well, should be fixed in this PR https://github.com/awslabs/aws-securityhub-multiaccount-scripts/pull/40