Skip to main content

Provides an [EC2 key pair](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html) resource. A key pair is used to control login access to EC2 instances.

Project description

tf-aws-keypair

AWS CDK L1 construct and data structures for the AWS CloudFormation Registry type TF::AWS::KeyPair v1.0.0.

Description

Provides an EC2 key pair resource. A key pair is used to control login access to EC2 instances.

Currently this resource requires an existing user-supplied key pair. This key pair's public key will be registered with AWS to allow logging-in to EC2 instances.

When importing an existing key pair the public key material may be in any format supported by AWS. Supported formats (per the AWS documentation) are:

  • OpenSSH public key format (the format in ~/.ssh/authorized_keys)
  • Base64 encoded DER format
  • SSH public key file format as specified in RFC4716

References

Usage

In order to use this library, you will need to activate this AWS CloudFormation Registry type in your account. You can do this via the AWS Management Console or using the AWS CLI using the following command:

aws cloudformation activate-type \
  --type-name TF::AWS::KeyPair \
  --publisher-id e1238fdd31aee1839e14fb3fb2dac9db154dae29 \
  --type RESOURCE \
  --execution-role-arn ROLE-ARN

Alternatively:

aws cloudformation activate-type \
  --public-type-arn arn:aws:cloudformation:us-east-1::type/resource/e1238fdd31aee1839e14fb3fb2dac9db154dae29/TF-AWS-KeyPair \
  --execution-role-arn ROLE-ARN

You can find more information about activating this type in the AWS CloudFormation documentation.

Feedback

This library is auto-generated and published to all supported programming languages by the cdklabs/cdk-cloudformation project based on the API schema published for TF::AWS::KeyPair.

  • Issues related to this generated library should be reported here.
  • Issues related to TF::AWS::KeyPair should be reported to the publisher.

License

Distributed under the Apache-2.0 License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cdk-cloudformation-tf-aws-keypair-1.0.0a2.tar.gz (40.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file cdk-cloudformation-tf-aws-keypair-1.0.0a2.tar.gz.

File metadata

  • Download URL: cdk-cloudformation-tf-aws-keypair-1.0.0a2.tar.gz
  • Upload date:
  • Size: 40.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.3

File hashes

Hashes for cdk-cloudformation-tf-aws-keypair-1.0.0a2.tar.gz
Algorithm Hash digest
SHA256 b6fd9036a5f9a06c9172ee5ab1bbeb4ec1a2b8a4d586886c7c6f17fcc60e3c9a
MD5 5707121ba5a7bc5b8a6105ffec162c52
BLAKE2b-256 81d1c39d2dfca9ac1692010cde158ef816a5c2abb66944ade29a6cac74c1b038

See more details on using hashes here.

File details

Details for the file cdk_cloudformation_tf_aws_keypair-1.0.0a2-py3-none-any.whl.

File metadata

  • Download URL: cdk_cloudformation_tf_aws_keypair-1.0.0a2-py3-none-any.whl
  • Upload date:
  • Size: 39.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.3

File hashes

Hashes for cdk_cloudformation_tf_aws_keypair-1.0.0a2-py3-none-any.whl
Algorithm Hash digest
SHA256 d0ec7350c42f89509a8452fed4c42134348d28eda2f3462fc6002fc3a5ac9e85
MD5 9a19cb7f1f58c46a0c6cfc7deadc7136
BLAKE2b-256 00848bf4cbff61a4dfde087e4db85560cf123609c2a6783740a3445149cd709d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page