googleOsLoginSshPublicKey
The SSH public key information associated with a Google account.
To get more information about SSHPublicKey, see:
- API documentation
- How-to Guides
- Official Documentation
Example Usage - Os Login Ssh Key Basic
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as google from "./.gen/providers/google";
/*The following providers are missing schema information and might need manual adjustments to synthesize correctly: google.
For a more precise conversion please use the --provider flag in convert.*/
const dataGoogleClientOpenidUserinfoMe =
new google.dataGoogleClientOpenidUserinfo.DataGoogleClientOpenidUserinfo(
this,
"me",
{}
);
new google.osLoginSshPublicKey.OsLoginSshPublicKey(this, "cache", {
key: '${file("path/to/id_rsa.pub")}',
user: dataGoogleClientOpenidUserinfoMe.email,
});
Argument Reference
The following arguments are supported:
-
key
- (Required) Public key text in SSH format, defined by RFC4253 section 6.6. -
user
- (Required) The user email.
-
expirationTimeUsec
- (Optional) An expiration time in microseconds since epoch. -
project
- (Optional) The project ID of the Google Cloud Platform project.
Attributes Reference
In addition to the arguments listed above, the following computed attributes are exported:
-
id
- an identifier for the resource with formatusers/{{user}}/sshPublicKeys/{{fingerprint}}
-
fingerprint
- The SHA-256 fingerprint of the SSH public key.
Timeouts
This resource provides the following Timeouts configuration options:
create
- Default is 20 minutes.update
- Default is 20 minutes.delete
- Default is 20 minutes.
Import
SSHPublicKey can be imported using any of these accepted formats: