Cloud Operations

Cloud Asset Inventory

M&A IT integration: the first 30 days in the cloud

TL;DR: Cloud work in an M&A IT integration comes down to four moves. Inventory every acquired account in days 1 to 3, give every resource an owner by day 10, rank inherited risk and idle spend by day 20, and decide what to keep, codify or retire by day 30. CloudQuery's CLI runs from one YAML file and puts each answer in SQL.

An M&A IT integration plan has a line for email, one for identity, one for the ERP and one for the transition service agreement. The cloud gets a line that says "consolidate."

You can't consolidate what you haven't counted. The acquired company's AWS, Azure and GCP accounts were built by people who answered to a different org chart, and some of them left when the deal was announced. A Forescout survey reported by Help Net Security found that more than half of IT decision-makers discovered unaccounted devices after integration finished. Cloud accounts are the same problem with an API and a billing address.

The first 30 days decide whether the estate gets consolidated or just inherited. Here is the plan we'd run, with the queries.

In this article:

Days 1 to 3: count what you acquired

Start with an inventory that doesn't depend on anyone's memory. CloudQuery's CLI reads cloud configuration through the provider APIs and writes it to a database you control. One YAML file lists the accounts and the tables.

kind: source
spec:
name: aws
path: cloudquery/aws
registry: cloudquery
version: "VERSION_SOURCE_AWS"
tables:
- aws_s3_buckets
- aws_ec2_instances
- aws_ec2_ebs_volumes
- aws_iam_users
destinations: ["postgresql"]
spec:
accounts:
- id: "acquired-prod"
local_profile: "acquired-prod"
- id: "acquired-dev"
local_profile: "acquired-dev"

The role behind each profile only needs read access. The CLI collects metadata and configuration, not the contents of buckets or databases, so security teams on both sides can approve it without a long review. Before close, the target can run the same file themselves and send you the results. After close, you run it against your own database. Azure and GCP sources use the same pattern, so a three-cloud acquisition still produces one database.

A Fortune 50 retailer's M&A integration team works this way on every deal: one CloudQuery database for inventory, compliance reporting and security analysis across every account an acquisition brings. The estate is queryable before anyone has argued about its architecture.

Days 4 to 10: find the things nobody can explain

The first useful question is which resources have no owner on your side. A tag that names an engineer who exists in the target's directory but not yours counts as unowned, because on day one it is.

-- acquired_accounts: the account IDs in scope for this deal
-- acquirer_directory: a view over your Okta or Entra ID user tables
SELECT b.account_id, b.region, b.name, b.creation_date,
b.tags->>'owner' AS claimed_owner
FROM aws_s3_buckets b
JOIN acquired_accounts a
ON a.account_id = b.account_id
LEFT JOIN acquirer_directory d
ON lower(d.email) = lower(b.tags->>'owner')
WHERE d.email IS NULL
ORDER BY b.account_id, b.creation_date;

Swap the table for instances, volumes or databases and the shape holds. The result is one row per thing nobody at the buyer can explain, which is a better starting position than a spreadsheet of what the seller remembered.

Run the same join against IAM users. People who left the acquired company still have credentials, and in an acquisition the offboarding checklist belongs to a company that no longer has an HR system you can ask.

SELECT u.account_id, u.user_name, u.password_last_used
FROM aws_iam_users u
JOIN acquired_accounts a ON a.account_id = u.account_id
LEFT JOIN acquirer_directory d
ON lower(d.email) = lower(u.user_name)
WHERE d.email IS NULL
ORDER BY u.password_last_used NULLS FIRST;

By day 10, every row should have a name next to it or a reason it doesn't.

Days 11 to 20: rank the risk and the waste

Inventory alone gives you a list. Joined to other data, it gives you an order.

Findings from Wiz, CrowdStrike or Snyk can be joined to the inventory on resource ID, so exposure gets ranked by account and owner instead of by whichever scanner is loudest. For a post-merger security review, that is the difference between "the acquired estate has 4,000 findings" and "eleven of them are on internet-facing resources nobody owns."

Cost is the other half. Idle resources in acquired accounts tend to be the first savings an integration team can show anyone, and the query is short.

SELECT v.account_id, v.region, v.arn, v.size, v.create_time
FROM aws_ec2_ebs_volumes v
JOIN acquired_accounts a ON a.account_id = v.account_id
WHERE v.state = 'available'
ORDER BY v.size DESC;

Unattached volumes are the easy case. Stale snapshots, idle load balancers and instances with no network traffic follow the same pattern, and each can be priced against Cost and Usage Report data.

Days 21 to 30: decide, then set a date

Every unowned resource gets one of three outcomes. Someone claims it, someone codifies it in infrastructure as code, or it's retired.

Ownership without a deadline is a suggestion, so add one. Transition service agreements run for a fixed term and the cloud estate should have a date too. Ninety days after close is common. Add the deadline as a column in the owner query, rerun it weekly, and send it to whoever the tag names, with the date printed next to the resource. Anything still unclaimed on the date goes to the retire list.

For what you keep, put it under infrastructure as code and gate new deployments. An env zero approval policy can refuse any new resource that doesn't name someone from your side, so the estate stops growing while you count it. Acquired teams keep deploying during integration, and the plan rarely tells them to stop.

Questions integration teams ask

How long does post-merger IT integration take in the cloud?

Full consolidation takes quarters. The first 30 days produce the inventory, the owner list and the decisions that set the rest of the schedule.

Do we need credentials to the target's accounts before close?

No. The target can run the CLI with a read-only role and send you the output, or you can wait for close and run it yourself.

What does the CLI collect?

Metadata and configuration. It doesn't read the data stored inside buckets or databases.

Where does the data go?

To a database you choose, such as PostgreSQL, so inventory and query results stay inside your own environment.

Which clouds does it cover?

AWS, Azure and GCP, plus the security and SaaS tools you'd join them with.

Start on day one

Diligence tells you what you agreed to buy. The inventory tells you what you got, and the gap between the two is whatever turns up in the first breach notice or the first surprise bill. Every account in that gap becomes yours on the day the deal closes, with the liabilities attached.

Follow the quickstart to run the CLI against a single account today, or see how CloudQuery handles M&A integrations end to end.

Try CloudQuery yourself

Self-hosted, open source, and free to start. Or schedule a demo to see the managed version.

Related posts

Own your pipeline.
Own your data.