Closed smoneyan closed 10 months ago
@smoneyan thank you for reporting the issue. I have created a backlog to address this.
Hi @smoneyan,
We just released AFT 1.10.4 with improved retry behavior to address this type of throttling issue.
Please upgrade to 1.10.4 and let us know if you continue to experience any throttling exceptions.
We haven't received any reports of continued throttling, so I'm going to go close this issue as completed. Please feel free to open a new ticket if you continue to experience throttling issues on versions >= 1.10.4
Terraform Version & Prov:
AFT Version: 1.10.1
Terraform Version & Provider Versions
terraform version
Bug Description A clear and concise description of what the bug is.
/aft/config/customizations/maximum_concurrent_customizations - 5
Calling get_running_pipeline_count() fails when calling ListPipelineExecutions API.
https://github.com/aws-ia/terraform-aws-control_tower_account_factory/blob/main/src/aft_lambda/aft_customizations/aft_customizations_get_pipeline_executions.py#L26-L27
https://github.com/aws-ia/terraform-aws-control_tower_account_factory/blob/main/sources/aft-lambda-layer/aft_common/codepipeline.py#L113-L116
To Reproduce Steps to reproduce the behavior:
pipelines = list_pipelines(session) - Number of total pipelines we have is around 160
Error :
An error occurred (ThrottlingException) when calling the ListPipelineExecutions operation (reached max retries: 4): Rate exceeded
Expected behavior
Looks like we have the default boto3 retries (3), is it possible to increase this to a higher number which solves the problem locally in my case.
or Any other way to reduce the API calls( instead of going through the list of all codepipelines), so that the API throttling can be avoided ?
Related Logs
Additional context Add any other context about the problem here.