Skip to content

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
@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