This is the new CloudFormation Template Reference Guide. Please update your bookmarks and links. For help getting started with CloudFormation, see the AWS CloudFormation User Guide.
AWS::Transfer::HostKey
Adds a host key to the server that's specified by the ServerId
parameter.
Syntax
To declare this entity in your CloudFormation template, use the following syntax:
JSON
{ "Type" : "AWS::Transfer::HostKey", "Properties" : { "Description" :String, "HostKeyBody" :String, "ServerId" :String, "Tags" :[ Tag, ... ]} }
YAML
Type: AWS::Transfer::HostKey Properties: Description:StringHostKeyBody:StringServerId:StringTags:- Tag
Properties
Description-
The text description for this host key.
Required: No
Type: String
Pattern:
^[\p{Print}]*$Minimum:
0Maximum:
200Update requires: No interruption
HostKeyBody-
The private key portion of an SSH key pair.
AWS Transfer Family accepts RSA, ECDSA, and ED25519 keys.
Required: No
Type: String
Maximum:
4096Update requires: Replacement
ServerId-
The identifier of the server that contains the host key that you are importing.
Required: Yes
Type: String
Pattern:
^s-([0-9a-f]{17})$Minimum:
19Maximum:
19Update requires: Replacement
-
Key-value pairs that can be used to group and search for host keys.
Required: No
Type: Array of Tag
Maximum:
50Update requires: No interruption
Return values
Ref
Fn::GetAtt
The Fn::GetAtt intrinsic function returns a value for a specified attribute of this type. The following are the available attributes and sample return values.
For more information about using the Fn::GetAtt intrinsic function, see Fn::GetAtt.
Arn-
The unique Amazon Resource Name (ARN) for the host key.
DateImported-
The date on which the host key was added to the server.
HostKeyFingerprint-
The public key fingerprint, which is a short sequence of bytes used to identify the longer public key.
HostKeyId-
A unique identifier for the host key.
Type-
The encryption algorithm that is used for the host key. The
Typeparameter is specified by using one of the following values:-
ssh-rsa -
ssh-ed25519 -
ecdsa-sha2-nistp256 -
ecdsa-sha2-nistp384 -
ecdsa-sha2-nistp521
-