Terraform module used to create AWS Key Pair and store them in S3. With simple syntax.
module "ec2-key" {
source = "terraform-iaac/key-pair/aws"
key_name = "my-ec2-instance"
key_storage_bucket = aws_s3_bucket.ssh_key_storage.id
}
module "ec2" {
source = "ec2...."
..................
key_pair_name = module.ec2-key.key_name
..................
}
Name | Version |
---|---|
terraform | >= 1.3.0 |
aws | >= 4.0.0 |
Name | Description | Type | Default | Required |
---|---|---|---|---|
key_name | Key Pair name in AWS & S3 file | string |
n/a | yes |
key_storage_bucket | S3 bucket | string |
n/a | yes |
rsa_bits | Rsa bits for private key | number |
4096 |
no |
Name | Description |
---|---|
public_key | Public key pem |
private_key | Private key pem |
key_name | Key Pair name in AWS & S3 file |