Skip to content

Files

Latest commit

3e37916 · Aug 29, 2022

History

History
45 lines (33 loc) · 670 Bytes

usage.md

File metadata and controls

45 lines (33 loc) · 670 Bytes

Instance (AWS)

AWS Instance with multiple SSH Key support.

Usage

ssh-keygen -t rsa
module "bastion" {
  source = "github.com/opszero/terraform-aws-bastion"

  ssh_keys = [ "ssh-rsa ..." ]
  
  users = {
    "username" = {
      ssh-keys = [
         "ssh-rs ..."
      ]
    }
  }
}

Connect

  • Use MrMgr to setup IAM access to the Bastion
  • pip3 install pip3 install ec2instanceconnectcli
  • mssh --profile awsprofile ubuntu@i-1234566

Deployment

terraform init
terraform plan
terraform apply -auto-approve

Teardown

terraform destroy -auto-approve