terraform-aws-modules/key-pair
Terraform module to create AWS EC2 key pair resources.
About
Terraform module to create AWS EC2 key pair resources.
Maintained by terraform-aws-modules on the Terraform Registry. Latest version 3.0.1, 12.7M downloads. Requires providers: aws >= 6.0; tls >= 4.0.
Deploy creates a StackGuardian workflow from the module's GitHub repository, pinned to this version. You set the inputs, see the plan, then approve the apply.
Use cases
- Least-privilege roles created from a reviewed template, not copied by hand.
- Workload identity for pods, functions and CI without long-lived keys.
- Access changes that leave an audit trail.
Inputs
No required inputs. Every variable has a default, so the first run works with an empty input form.
10 inputs, 11 outputs in total. The full list, with defaults and descriptions, is on the registry page.
What it creates
aws_key_pairtls_private_key
How it runs on StackGuardian
Terraform workflow from the module's GitHub repository: plan, policy check, approval, then apply.
Approvals happen in StackGuardian. An agent can never approve its own run. Every run keeps its plan, policy results and approver in the audit log.