[FEAT]: data.github_user.ssh_keys - Allow returning the key ID as well #2208
Labels
Status: Up for grabs
Issues that are ready to be worked on by anyone
Type: Feature
New feature or request
Describe the need
When this provider is used to retrieve the public ssh keys of a user, it only provides a list of ssh keys, as you would get when calling:
This list only cotains the ssh key list, but it does not deliver any ids. Although it seems to be sorted by key id.
The result looks like this:
Yet, when calling the api, we can also retrieve the SSH Key id. Api Documentation Link
My feature request is the ability to retrieve this key id through the terraform provider as well. This would provide the possiblity to safely iterate through the list of ssh keys and it would also provide the chance to address each key individually.
This would make the result look like this:
This would also change the data type of the result from
list(string)
tolist(map(string))
.Since this is a breaking change (unless terraform introduces a map default type that is returned, when addressing a map directly), it should be realized through an additional api call.
Thank you very much.
SDK Version
6.2.0
API Version
2022-11-28
Relevant log output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: