Skip to content

[9.5](backport #7919) [Asset Inventory][EC2] Add timeout handler to IAM resolver - #7920

Merged
kubasobon merged 1 commit into
9.5from
mergify/bp/9.5/pr-7919
Aug 17, 2026
Merged

[9.5](backport #7919) [Asset Inventory][EC2] Add timeout handler to IAM resolver#7920
kubasobon merged 1 commit into
9.5from
mergify/bp/9.5/pr-7919

Conversation

@mergify

@mergify mergify Bot commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Summary of your changes

Add 10s timeout to GetInstanceProfile calls in EC2 instance fetcher

The IAM client uses the default HTTP transport with no timeout. If GetInstanceProfile hangs, the fetch loop blocks before sending any asset to the channel, so zero EC2 assets are published. Errors are already handled gracefully (falls back to the profile ARN), so a timeout is enough to resolve any issues.

Related Issues

Resolves error for integration tests.


This is an automatic backport of pull request #7919 done by [Mergify](https://mergify.com).

### Summary of your changes

Add 10s timeout to `GetInstanceProfile` calls in EC2 instance fetcher

The IAM client uses the default HTTP transport with no timeout. If
`GetInstanceProfile` hangs, the fetch loop blocks before sending any
asset to the channel, so zero EC2 assets are published. Errors are
already handled gracefully (falls back to the profile ARN), so a timeout
is enough to resolve any issues.

### Related Issues

Resolves error for integration tests.

(cherry picked from commit e1ea204)
@mergify

mergify Bot commented Aug 17, 2026

Copy link
Copy Markdown
Contributor Author

This pull request has not been merged yet. Could you please review and merge it @kubasobon? 🙏

@kubasobon
kubasobon merged commit 2bc1b0d into 9.5 Aug 17, 2026
15 checks passed
@kubasobon
kubasobon deleted the mergify/bp/9.5/pr-7919 branch August 17, 2026 09:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant