{"id":45944248,"url":"https://github.com/time-loop/cdk-jump-box","last_synced_at":"2026-02-28T10:59:09.469Z","repository":{"id":41846324,"uuid":"479441099","full_name":"time-loop/cdk-jump-box","owner":"time-loop","description":null,"archived":false,"fork":false,"pushed_at":"2026-02-01T00:33:20.000Z","size":472,"stargazers_count":0,"open_issues_count":11,"forks_count":0,"subscribers_count":43,"default_branch":"main","last_synced_at":"2026-02-01T12:10:35.078Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/time-loop.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-04-08T15:19:58.000Z","updated_at":"2025-11-17T20:43:59.000Z","dependencies_parsed_at":"2024-04-01T01:27:45.613Z","dependency_job_id":"78683997-7001-418b-af3a-775f0c06bc3f","html_url":"https://github.com/time-loop/cdk-jump-box","commit_stats":null,"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"purl":"pkg:github/time-loop/cdk-jump-box","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/time-loop%2Fcdk-jump-box","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/time-loop%2Fcdk-jump-box/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/time-loop%2Fcdk-jump-box/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/time-loop%2Fcdk-jump-box/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/time-loop","download_url":"https://codeload.github.com/time-loop/cdk-jump-box/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/time-loop%2Fcdk-jump-box/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29930948,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-28T09:58:13.507Z","status":"ssl_error","status_checked_at":"2026-02-28T09:57:57.047Z","response_time":90,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-02-28T10:59:08.636Z","updated_at":"2026-02-28T10:59:09.454Z","avatar_url":"https://github.com/time-loop.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![codecov](https://codecov.io/gh/time-loop/cdk-jump-box/branch/master/graph/badge.svg?token=QEPjE3ysnM)](https://codecov.io/gh/time-loop/cdk-jump-box)\n\n# cdk-jump-box\n\n## Connecting\n\nFirst you'll need to do the bootstrapping steps described below.\n\n```bash\nSTACK_NAME=\"MyStack\"\nASG_NAME=\"${STACK_NAME}Jump\"\n\nSSH_KEY_NAME=\"$HOME/.ssh/${AWS_PROFILE}-${ASG_NAME}.pem\"\n\n# Set us up the Jumpbox\naws autoscaling set-desired-capacity --auto-scaling-group-name \"$ASG_NAME\" --desired-capacity 1\n\n# Find the jump box instance\nwhile\n  JUMP_INSTANCE_ID=$(aws autoscaling describe-auto-scaling-groups --query \"AutoScalingGroups[?AutoScalingGroupName=='$ASG_NAME'].Instances[].InstanceId\" --output=text)\n  [[ -z \"$JUMP_INSTANCE_ID\" ]];\ndo\n  sleep 10\ndone\n\nLOCAL_PORT=$(python -c 'import socket; s=socket.socket(); s.bind((\"\", 0)); print(s.getsockname()[1]); s.close()')\n\nssh -f -i \"$SSH_KEY\" -L \"$LOCAL_PORT:$INTERNAL_HOST:$INTERNAL_PORT\" \"ec2-user@$JUMP_INSTANCE_ID\" sleep 10 \u0026\u0026 \\\nexampleClient --host localhost --port \"$LOCAL_PORT\" ...\n```\n\n## Bootstrapping\n\nYou only have to run these steps once, but you need to do it before you try connecting.\n\n1. [Install](https://docs.aws.amazon.com/systems-manager/latest/userguide/session-manager-working-with-install-plugin.html) the session manager plugin:\n\n```bash\n# On a Mac, you may need to allow this in System Preferences -\u003e Security\nbrew install session-manager-plugin\n```\n\n2. Make sure the following is in your `~/.ssh/config`:\n\n```\n# SSH over Session Manager\nHost i-* mi-*\n  ProxyCommand sh -c \"aws ssm start-session --target %h --document-name AWS-StartSSHSession --parameters 'portNumber=%p'\"\n  # Keep connection from closing on you due to agressive SSM timeouts, but close it when the other side stops caring\n  TCPKeepAlive yes\n  ServerAliveInterval 15\n  # Never Forward agents to remove machines you don't know\n  ForwardAgent no\n  # If you need to scp or portforward a lot, using a control channle will help.  Be sure to create the ControlPath first\n  # ControlMaster auto\n  # ControlPath ~/.ssh/control/%C\n  # ControlPersist 30\n\n```\n\n3. Get the SSH key such as `~/.ssh/myAccount-MyStackJump.pem`:\n\n```bash\nexport AWS_PROFILE=myAccount\nexport AWS_REGION=us-west-2\nclick a\n\nSTACK_NAME=\"MyStack\"\nASG_NAME=\"${STACK_NAME}Jump\"\n\n# Fetch the SSH key from SecretsManager\nSSH_KEY_NAME=\"$HOME/.ssh/${AWS_PROFILE}-${ASG_NAME}.pem\"\naws secretsmanager get-secret-value --region=\"$AWS_REGION\" --output=text --query SecretString --secret-id \"ec2-ssh-key/${ASG_NAME}/private\" \u003e \"$SSH_KEY_NAME\"\nchmod 400 \"$SSH_KEY_NAME\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftime-loop%2Fcdk-jump-box","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftime-loop%2Fcdk-jump-box","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftime-loop%2Fcdk-jump-box/lists"}