aws-ia / terraform-aws-control_tower_account_factory

AWS Control Tower Account Factory
Apache License 2.0
604 stars 386 forks source link

aft-customizations-get-pipeline-executions's list index out of range #433

Open jakeawedevops opened 4 months ago

jakeawedevops commented 4 months ago

When I tried to invoke "aft-invoke-customizations" step function, the lambda function "aft-customizations-get-pipeline-executions" produces an error "list index out of range". Here's the full trace: { "cause": { "errorMessage": "list index out of range", "errorType": "IndexError", "stackTrace": [ " File \"/var/task/aft_customizations_get_pipeline_executions.py\", line 24, in lambda_handler\n running_pipelines = get_running_pipeline_count(session, pipelines)\n", " File \"/opt/python/lib/python3.8/site-packages/aft_common/customizations.py\", line 125, in get_running_pipeline_count\n latest_execution = sorted(\n" ] }, "error": "IndexError" }

Sanjan611 commented 4 months ago

Hi, @jakeawedevops , would you be able to update the description with the bug/issue template here?

SheardJ commented 3 months ago

+1 also seeing this issue

hanafya commented 3 months ago

Hey @SheardJ!

Can you provide the following information?

Terraform Version & Prov:

AFT Version: (Can be found in the AFT Management Account in the SSM Parameter /aft/config/aft/version)

Terraform Version & Provider Versions Please provide the outputs of terraform version and terraform providers from within your AFT environment

terraform version

{Replace me}

terraform providers

{Replace me}

Bug Description A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Related Logs Provide any related logs or error messages to help explain your problem.

Additional context Add any other context about the problem here.