Skip to content

rhythmictech/terraform-aws-secretsmanager-keypair

Repository files navigation

terraform-aws-secretsmanager-keypair

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 n/a
tls n/a

Modules

No modules.

Resources

Name Type
aws_key_pair.keypair resource
aws_secretsmanager_secret.secret_key resource
aws_secretsmanager_secret_version.secret_key_value resource
tls_private_key.key resource

Inputs

Name Description Type Default Required
description Description of secret string "ssh key" no
name_prefix Prefix to add to keypair/secret name string n/a yes
tags Tags to add to supported resources map(string) {} no

Outputs

Name Description
key_name Name of the keypair