An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# terraform-aws-secretsmanager-keypair

[![](https://github.com/rhythmictech/terraform-aws-secretsmanager-keypair/workflows/check/badge.svg)](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 |