AWS Instance with multiple SSH Key support.
ssh-keygen -t rsamodule "bastion" {
source = "github.com/opszero/terraform-aws-bastion"
ssh_keys = [ "ssh-rsa ..." ]
users = {
"username" = {
ssh-keys = [
"ssh-rs ..."
]
}
}
}- Use MrMgr to setup IAM access to the Bastion
pip3 install pip3 install ec2instanceconnectclimssh --profile awsprofile ubuntu@i-1234566
terraform init
terraform plan
terraform apply -auto-approveterraform destroy -auto-approve