-
Notifications
You must be signed in to change notification settings - Fork 106
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
soumyo/aws_iam_ssh_public_key #695
Conversation
Signed-off-by: Soumyodeep Karmakar <soumyo.k13@gmail.com>
Signed-off-by: Soumyodeep Karmakar <soumyo.k13@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Is there a resource available to get the ssh_public_key_id connected to the iam_ssh_public_key, in order to iterate through keys and check the properties? It seems like there would need to be a plural resource of aws_iam_ssh_public_key to iterate through all keys on the account. |
As in a public resource for aws_iam_public_ssh_key, which uses the method linked here (https://docs.aws.amazon.com/sdk-for-ruby/v2/api/Aws/IAM/Client.html#list_ssh_public_keys-instance_method) in order to list all keys associated with a user, which can then be iterated over |
Signed-off-by: Soumyodeep Karmakar <soumyo.k13@gmail.com>
I have added the plural resource. |
@Nirbhay1997 , @soumyo13 : The 'aws_iam_ssh_public_keys.md' file is not available in the said branch. Kindly advise how to proceed. |
I am able to see the file. |
Its available now. Reviewed it. |
Thanks. |
Signed-off-by: Deepa Kumaraswamy <dkumaras@progress.com>
The plural resource uses the API "list_ssh_public_keys" which does not have a required parameter "user_ name". So the attribute "user_name" is not mandatory. Even I have tested the same and it worked fine for me. Link to the API: https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/Client.html#list_ssh_public_keys-instance_method @jb897 We can provide the "user_name" attribute as a required parameter. Please let me know. |
Thank you so much for understanding. I would greatly appreciate adding in user_name as a required parameter or as an optional parameter, since it is not required for the API. Whatever is best in your opinion. |
Great. We will do that. |
Signed-off-by: Deepa Kumaraswamy <dkumaras@progress.com>
Signed-off-by: Soumyodeep Karmakar <soumyo.k13@gmail.com>
removed documentation label as plural resource changes are yet to be done. |
Signed-off-by: Soumyodeep Karmakar <soumyo.k13@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dkumaras Please review it again.
@jb897 -> I have added the plural resource. I made the "user_name" the optional parameter. If the user wants to pass the username, he/she can pass it. Just done according to his need. Please check the documentation for more information. |
Signed-off-by: Deepa Kumaraswamy <dkumaras@progress.com>
Signed-off-by: Deepa Kumaraswamy <dkumaras@progress.com>
Kudos, SonarCloud Quality Gate passed!
|
Signed-off-by: Soumyodeep Karmakar soumyo.k13@gmail.com
Description
This resource pack contains the singular and plural resource. No Terraform available.
Issues Resolved
#689
Check List
Please fill box or appropriate ([x]) or mark N/A.
rake lint
passes