# A Story of Delayed AWS Pipelines

DevFeed: [A Story of Delayed AWS Pipelines](<https://devfeed.tech/articles/a-story-of-delayed-aws-pipelines-23718.md>)

Original publisher: [Read original article](<https://medium.com/booking-com-development/a-story-of-delayed-aws-pipelines-382e4a1fede6?source=rss----1c36c35f9c76---4>)

Author: Vladimir Romashov

Published: 2026-05-08T14:23:22Z

Content type: article

Language: en

Sources: [Booking.com Development](<https://devfeed.tech/sources/booking-com-development-medium.md>)

Topics: [AWS Organizations](<https://devfeed.tech/topics/aws-organizations.md>), [CI/CD](<https://devfeed.tech/topics/cicd.md>), [AWS CloudTrail](<https://devfeed.tech/topics/aws-cloudtrail.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [aws](<https://devfeed.tech/tags/aws.md>), [aws-organizations](<https://devfeed.tech/tags/aws-organizations.md>), [booking](<https://devfeed.tech/tags/booking.md>), [cdk](<https://devfeed.tech/tags/cdk.md>), [ci-cd](<https://devfeed.tech/tags/ci-cd.md>), [ci-cd-pipeline](<https://devfeed.tech/tags/ci-cd-pipeline.md>), [cloudformation](<https://devfeed.tech/tags/cloudformation.md>), [compliance](<https://devfeed.tech/tags/compliance.md>), [data](<https://devfeed.tech/tags/data.md>), [iac](<https://devfeed.tech/tags/iac.md>), [infrastructure](<https://devfeed.tech/tags/infrastructure.md>), [infrastructure-as-code](<https://devfeed.tech/tags/infrastructure-as-code.md>), [pipelines](<https://devfeed.tech/tags/pipelines.md>), [s3](<https://devfeed.tech/tags/s3.md>), [terraform](<https://devfeed.tech/tags/terraform.md>)

## AI overview

Terraform's `aws_organizations_organization` data source can create organization-wide API delays because it calls `DescribeOrganization`, `ListAccounts`, and `ListRoots`, even when a caller only needs the organization ID. The excerpt reports that denied `ListAccounts` calls still triggered retries and exponential backoff, while Terraform plans and applies repeatedly read the data source. Since Organizations API quotas are shared across an AWS organization, concurrent pipelines can exhaust burst capacity and queue behind the documented base rate of one request per second. In the reported testing, about 1 in 10 Terraform pipelines encountered delays of 1-15 minutes; CDK pipelines in the same accounts did not. The provider change to make `ListAccounts` and `ListRoots` optional was merged for AWS provider v6.29.0. As a temporary workaround, the team cached the data source output centrally, trading reduced API calls for the need to maintain a central update mechanism. The excerpt says AWS automatic quota management did not yet cover the Organizations API.

## Source excerpt

How a seemingly simple AWS API call can silently slow down your CI/CD pipelines Review/co-researcher: Gonzalo Ulla The Mystery It started with a line in one of our team's CI/CD logs that nobody expected: module.project.module.user_buckets.module.s3_bucket.data.aws_organizations_organization.current: Still reading... [15m10s elapsed] 15 minutes and 10 seconds -- just to read organization data. A value that should return in milliseconds was holding up entire pipelines. After digging deeper, we discovered this wasn't a one-off issue. During testing, roughly 1 in 10 pipelines containing Terraform were affected, with delays ranging from 1 to 15 minutes each. At Booking.com, we deploy and manage our AWS infrastructure using two primary Infrastructure as Code (IaC) technologies: Terraform and AWS Cloud Development Kit (CDK). To standardize and enforce our compliance and security controls, we maintain a set of internal Terraform and CDK modules to provision resources that handle personally identifiable information (PII). Interestingly, only Terraform pipelines were affected by this issue -- CDK ones running in the same accounts and against the same AWS Organization were completed without any delays. [spoiler alert/] CDK uses CloudFormation under the hood, which doesn't make additional Organizations API calls directly. [/spoiler alert]. This ruled out a general AWS-side outage or account-level throttling and pointed us toward something specific to how Terraform interacts with the Organizations API. This is the story of how we tracked down the root cause -- and why the fix isn't as simple as you'd think. What is aws_organizations_organization? Terraform's aws_organizations_organization data source retrieves information about, guess what, your AWS Organization. On the surface, it maps to the AWS DescribeOrganization API call -- a flat request. No iteration. No pagination. Simple... Or so we thought. The First Clue: Reproducing the Issue The references to the Organizations API mostly c