github-ssh-keys

deanwilson/github-ssh-keys/aws

Terraform Module HCL AWS

Use your GitHub SSH public key as an AWS EC2 key pair

Install
module "github-ssh-keys" {
source = "deanwilson/github-ssh-keys/aws"
version = "0.2.0"
}
plain text: /constructs/tfmod-deanwilson-github-ssh-keys-aws/install.txt
⭐ Source on GitHub 📦 Registry page
README

terraform-aws-github-ssh-keys Use your GitHub SSH public key as an AWS EC2 key pair. Before you can log in to an AWS EC2 instance you'll need to create an assign an SSH key pair. This module allows you to use your existing GitHub registered public key instead of creating an AWS specific one. Usage The modules basic usage only requires that you specify the source, as usual, and the GitHub user name from which it should fetch ssh keys. `` module "github-ssh-keys" { source = "deanwilson/github-ssh-keys/aws" # fetch the ssh key from this user name github_user = "deanwilson" } ` There are a few more parameters you can specify in the module. They allow customisation of the key pair name to create in AWS and which of the GitHub ssh keys to use. Unfortunately this has to be accessed by index, not

Inputs (3)
NameTypeDescriptionDefault
github_useranyGitHub user name required
github_key_indexanyIndex of the key to use. Starts from 0"0"
aws_key_pair_nameanyAWS key pair name to create. Defaults to github_user""
Outputs (1)
aws_key_pair_name — The AWS key pair name this module invocation created.
Resources (1)
aws_key_pair
Details
FrameworkTerraform Module
LanguageHCL
Version0.2.0
Cloud AWS
★ Stars3
Forks1
Total downloads7.2k
Inputs3
Outputs1
Resources1
LicenseMPL-2.0
Namespacedeanwilson
Updated