aws.iam.get_ssh_public_key
Example SQL Queries
SELECT * FROMaws.iam.get_ssh_public_keyWHERE"user_name" = 'VALUE'AND "ssh_public_key_id" = 'VALUE'AND "encoding" = 'VALUE';Description
Retrieves the specified SSH public key, including metadata about the key.
The SSH public key retrieved by this operation is used only for authenticating the associated IAM user to an CodeCommit repository. For more information about using SSH keys to authenticate to an CodeCommit repository, see Set up CodeCommit for SSH connections in the CodeCommit User Guide.
Table Definition
| Column Name | Column Data Type |
|---|---|
| encoding Required Input Column Specifies the public key encoding format to use in the response. To retrieve the public key in ssh-rsa format, use SSH. To retrieve the public key in PEM format, use PEM. | VARCHAR |
| ssh_public_key_id Required Input Column The unique identifier for the SSH public key. This parameter allows (through its regex pattern) a string of characters that can consist of any upper or lowercased letter or digit. | VARCHAR |
| user_name Required Input Column The name of the IAM user associated with the SSH public key. This parameter allows (through its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@- | VARCHAR |
| _aws_profile Input Column The AWS profile defines the AWS identity used. It can be defined via credentials or by assuming a IAM role. | STRUCT( |
Show child fields
| |
| ssh_public_key A structure containing details about the SSH public key. | STRUCT( |
Show child fields
| |