https://github.com/rhythmictech/terraform-aws-secretsmanager-keypair
Generates and stores an EC2 Keypair in Secrets Manager
https://github.com/rhythmictech/terraform-aws-secretsmanager-keypair
aws keypair terraform terraform-module terraform-modules
Last synced: 10 months ago
JSON representation
Generates and stores an EC2 Keypair in Secrets Manager
- Host: GitHub
- URL: https://github.com/rhythmictech/terraform-aws-secretsmanager-keypair
- Owner: rhythmictech
- License: mit
- Created: 2019-06-12T13:11:03.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-02-23T17:29:37.000Z (almost 4 years ago)
- Last Synced: 2025-04-04T07:11:23.778Z (11 months ago)
- Topics: aws, keypair, terraform, terraform-module, terraform-modules
- Language: HCL
- Homepage: https://registry.terraform.io/modules/rhythmictech/secretsmanager-keypair/aws
- Size: 6.84 KB
- Stars: 8
- Watchers: 1
- Forks: 6
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# terraform-aws-secretsmanager-keypair
[](https://github.com/rhythmictech/terraform-aws-secretsmanager-keypair/actions)
Generates and stores an EC2 Keypair in Secrets Manager
Example:
```
module "keypair" {
source = "git::https://github.com/rhythmictech/terraform-aws-secretsmanager-keypair"
name_prefix = "instance-keypair"
description = "SSH keypair for instances"
}
```
## Requirements
No requirements.
## Providers
| Name | Version |
|------|---------|
| [aws](#provider\_aws) | n/a |
| [tls](#provider\_tls) | n/a |
## Modules
No modules.
## Resources
| Name | Type |
|------|------|
| [aws_key_pair.keypair](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/key_pair) | resource |
| [aws_secretsmanager_secret.secret_key](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/secretsmanager_secret) | resource |
| [aws_secretsmanager_secret_version.secret_key_value](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/secretsmanager_secret_version) | resource |
| [tls_private_key.key](https://registry.terraform.io/providers/hashicorp/tls/latest/docs/resources/private_key) | resource |
## Inputs
| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| [description](#input\_description) | Description of secret | `string` | `"ssh key"` | no |
| [name\_prefix](#input\_name\_prefix) | Prefix to add to keypair/secret name | `string` | n/a | yes |
| [tags](#input\_tags) | Tags to add to supported resources | `map(string)` | `{}` | no |
## Outputs
| Name | Description |
|------|-------------|
| [key\_name](#output\_key\_name) | Name of the keypair |