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.0a5.tar.gz (122.9 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.0a5.tar.gz.

File metadata

  • Download URL: cdk-cloudformation-tf-aws-keypair-1.0.0a5.tar.gz
  • Upload date:
  • Size: 122.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.25.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/17.1.1 rfc3986/2.0.0 colorama/0.4.3 CPython/3.7.3

File hashes

Hashes for cdk-cloudformation-tf-aws-keypair-1.0.0a5.tar.gz
Algorithm Hash digest
SHA256 64e9921e76d9be2e0136e01d8a626806ccdeb9d211afc8862e4a4a72cb94b3a1
MD5 45a3daa990613aca834bc90fdaf2fa66
BLAKE2b-256 4a243a27728acd6241a7539c1f2f781fd8b76189b51fe70dc90fce3af1d29062

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cdk_cloudformation_tf_aws_keypair-1.0.0a5-py3-none-any.whl
  • Upload date:
  • Size: 122.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.25.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/17.1.1 rfc3986/2.0.0 colorama/0.4.3 CPython/3.7.3

File hashes

Hashes for cdk_cloudformation_tf_aws_keypair-1.0.0a5-py3-none-any.whl
Algorithm Hash digest
SHA256 a3aee05fa16064ff1fef7a3aa7da256ee57f1fa1dad581373efcdf46a51259d4
MD5 b323a4e006d84069c821918a61834ed8
BLAKE2b-256 076e3000cedab7ec3a0bba9eb27af016de0e6cf4d1b089181fd3c6c61079392a

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