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

Support passing the ARN for an SSM Parameter via objectName #423

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

thandleman-r7
Copy link

Issue #, if available: #397

Description of changes:

The documentation states that you cannot pass an ARN for an object type of ssmparameter. This limitation seems to only be imposed by the fact that, after fetching the parameters from SSM, we only check if the parameter name matches one of the descriptors. However, the ARN is also available in the response for each parameter. As can be seen in the linked issue, the call to SSM doesn't fail, it is matching the result to the descriptor that fails due to a nil pointer.

This change falls back on the ARN if a descriptor is not matched by name. We can assume that if the parameter in the results was not found by name, then the ARN was passed.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@thandleman-r7 thandleman-r7 requested a review from a team as a code owner January 24, 2025 01:54
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.

1 participant