AWS Instance with multiple SSH Key support.
ssh-keygen -t rsa
module "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 ec2instanceconnectcli
mssh --profile awsprofile ubuntu@i-1234566
terraform init
terraform plan
terraform apply -auto-approve
terraform destroy -auto-approve