Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Options to disable the bastoin SG + optional aws profile config for aws provider #27

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Z4ck404
Copy link

@Z4ck404 Z4ck404 commented Oct 10, 2024

No description provided.

@Z4ck404 Z4ck404 changed the title Option to specify aws profile Options to disable the bastoin SG + optional aws profile config for aws provider Oct 10, 2024
@paulczar
Copy link
Contributor

paulczar commented Nov 8, 2024

doesn't sshuttle still need to SSH into the bastion to create the SSH vpn ?

@scottd018
Copy link
Collaborator

doesn't sshuttle still need to SSH into the bastion to create the SSH vpn ?

@paulczar looks like our command is using SSH over SSM, which is using the AWS service to make the connection. in that case no SSH port should be opened, so we should be good

    sshuttle --ssh-cmd="ssh -o ProxyCommand='sh -c \"aws --region ${var.region} ssm start-session --target %h --document-name AWS-StartSSHSession --parameters \
    portNumber=22\"'" --remote ec2-user@${(var.private && !var.bastion_public_ip) ? aws_instance.bastion_host[0].id : ""} --dns ${var.vpc_cidr}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants