Sign in
Menu
Start free trial

Use this module

module "key_pair" {
  source = "registry.compliance.tf/terraform-aws-modules/key-pair/aws"

  key_name           = "deployer-one"
  create_private_key = true
}

The example from the module's README, with this page's source.

Key inputs

Required inputs first, then the inputs the README example sets.

  • key_namestring, default null

    The name for the key pair. Conflicts with key_name_prefix

  • create_private_keybool, default false

    Determines whether a private key will be created

All 10 inputs