Skip to content

fix: improve logging when there is an error retrieving ssm parameters #3962

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

Merged
merged 1 commit into from
Jul 2, 2024

Conversation

Brend-Smits
Copy link
Contributor

In case the AMI ID Parameter was set to something that did not exist, it would produce an obscure error: "message": "Ignoring error: UnknownError".
Now it produces better error messages:
"message": "Ignoring error: Error: Failed to lookup runner AMI ID from SSM parameter: /github-action-runners/staging/ubuntu-x64/runners/config/ami-id,\n ParameterNotFound: UnknownError",

Signed-off-by: Brend Smits [email protected]

@Brend-Smits Brend-Smits requested a review from npalm July 2, 2024 09:01
@npalm npalm changed the title chore: improve logging when there is an error retrieving ssm parameters fix: improve logging when there is an error retrieving ssm parameters Jul 2, 2024
Copy link
Member

@npalm npalm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thx, looks good

@npalm npalm merged commit 1498c8c into main Jul 2, 2024
5 checks passed
@npalm npalm deleted the improve-lambda-logging branch July 2, 2024 09:15
npalm pushed a commit that referenced this pull request Jul 8, 2024
🤖 I have created a release *beep* *boop*
---


##
[5.12.1](philips-labs/terraform-aws-github-runner@v5.12.0...v5.12.1)
(2024-07-05)


### Bug Fixes

* dependency updates lambda
([#3965](https://github.com/philips-labs/terraform-aws-github-runner/issues/3965))
([a6df2b6](philips-labs/terraform-aws-github-runner@a6df2b6))
* improve logging when there is an error retrieving ssm parameters
([#3962](https://github.com/philips-labs/terraform-aws-github-runner/issues/3962))
([1498c8c](philips-labs/terraform-aws-github-runner@1498c8c))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: forest-releaser[bot] <80285352+forest-releaser[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants