Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v17] Fix AWS ListDeployedDatabaseServices when there's no ECS Cluster #50904

Merged
merged 1 commit into from
Jan 10, 2025

Conversation

marcoandredinis
Copy link
Contributor

Backport #50843 to v17

(I had to backport some other changes related to AWS SDK V2 error handling code)

)

Calling the AWS API `ecs:ListServices` with a non-existent ECS Cluster
name will return a 400 w/ ClusterNotFoundException.

The existing code was not handling that error and a raw error was
returned.

This PR changes the logic to ensure that case is handled and that the
ListDeployedDatabaseServices returns an empty list.

An alternative would be to call the ListClusters beforehand, but that
would increase the number of API calls we do to external services.
@marcoandredinis marcoandredinis added the no-changelog Indicates that a PR does not require a changelog entry label Jan 9, 2025
@github-actions github-actions bot requested review from kiosion and strideynet January 9, 2025 11:27
@public-teleport-github-review-bot public-teleport-github-review-bot bot removed the request for review from kiosion January 10, 2025 17:21
@marcoandredinis marcoandredinis added this pull request to the merge queue Jan 10, 2025
Merged via the queue into branch/v17 with commit dadc7a5 Jan 10, 2025
41 checks passed
@marcoandredinis marcoandredinis deleted the marco/v17/backport_50843 branch January 10, 2025 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport no-changelog Indicates that a PR does not require a changelog entry size/sm
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants