AWS::Lightsail::KeyPairResource Type definition for AWS::Lightsail::KeyPair
2 configurable properties. 1 required. Click a row to see details.
| Property | Type | Flags |
|---|---|---|
KeyPairName | string | RequiredCreate-only |
Tags | Array<Tag> |
Values returned after the resource is created. Access these with Fn::GetAtt.
| Attribute | Type | Description |
|---|---|---|
CreatedAt | string | The timestamp when the key pair was created. |
Fingerprint | string | The RSA fingerprint of the key pair. |
KeyPairArn | string | The Amazon Resource Name (ARN) of the key pair. |
Location | ResourceLocation | - |
ResourceType | string | The Lightsail resource type (KeyPair). |
SupportCode | string | The support code. Include this code in your email to support when you have questions about a key pair in Lightsail. |
A minimal template with required properties and common optional ones.
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::Lightsail::KeyPair
Resources:
MyResource:
Type: AWS::Lightsail::KeyPair
Properties:
KeyPairName: "my-keypairname"
Tags:
- Key: Environment
Value: ProductionPermissions CloudFormation needs in your IAM role to manage this resource.
lightsail:CreateKeyPairlightsail:GetKeyPairlightsail:TagResourcelightsail:GetKeyPairlightsail:GetKeyPairlightsail:TagResourcelightsail:UntagResourcelightsail:DeleteKeyPairlightsail:GetKeyPairlightsail:GetKeyPairsOur bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to NewsletterKeyPairNameThese properties cannot be changed after the resource is created. Updating them triggers a replacement.
KeyPairName