{"id":20901566,"url":"https://github.com/willfarrell/aws-bastion","last_synced_at":"2026-01-29T23:07:18.933Z","repository":{"id":256611024,"uuid":"850028215","full_name":"willfarrell/aws-bastion","owner":"willfarrell","description":"Fargate container and script to trigger a bastion. Only runs when needed.","archived":false,"fork":false,"pushed_at":"2024-09-20T12:39:53.000Z","size":14,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-13T03:34:38.656Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/willfarrell.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}},"created_at":"2024-08-30T18:20:43.000Z","updated_at":"2024-09-20T12:39:56.000Z","dependencies_parsed_at":"2024-09-12T03:07:57.621Z","dependency_job_id":"a7147d38-cdee-4045-8f42-84cfa89f091a","html_url":"https://github.com/willfarrell/aws-bastion","commit_stats":null,"previous_names":["willfarrell/aws-bastion"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/willfarrell/aws-bastion","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willfarrell%2Faws-bastion","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willfarrell%2Faws-bastion/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willfarrell%2Faws-bastion/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willfarrell%2Faws-bastion/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/willfarrell","download_url":"https://codeload.github.com/willfarrell/aws-bastion/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willfarrell%2Faws-bastion/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28889864,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-29T21:06:44.224Z","status":"ssl_error","status_checked_at":"2026-01-29T21:06:42.160Z","response_time":59,"last_error":"SSL_read: 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":"2024-11-18T11:36:02.873Z","updated_at":"2026-01-29T23:07:18.918Z","avatar_url":"https://github.com/willfarrell.png","language":"Shell","readme":"# aws-bastion\n\nFargate container and script to trigger a bastion. Only runs when needed.\n\n## Features\n\n- no ssh needed\n- auto fallback to trigger sso login\n- only runs when needed (1min interval)\n- Connect to multiple env at once\n\n## Prerequisites\n\n- Get access to AWS console\n- Install AWS CLI v2 by following the steps in this [AWS documentation](https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html)\n- Install AWS CLI Session Manager plugin [AWS Documentation](https://docs.aws.amazon.com/systems-manager/latest/userguide/session-manager-working-with-install-plugin.html)\n\n## Setup\n\n1. Setup ECS Task definition (see task-definition.json \u0026 task-iam.json)\n2. Copy aws-bastion.sh where you need it.\n3. Setup and alias for easy running\n\n```zshrc\nfunction rds-dev {\n  ./aws-bastion.sh --region ca-central-1 --profile ORG-development \\\n   --cluster operations --task-definition ops-bastion \\\n   --network-configuration '{\"awsvpcConfiguration\":{\"subnets\":[\"subnet-***private***\",\"subnet-***private***\"],\"securityGroups\":[\"sg-***singleuse***\"]}}' \\\n   --local-port 5432 --remote-port 9999 --remote-host datastream-serverless-aurora-postgresql.cluster-*******.ca-central-1.rds.amazonaws.com\n}\nalias rds-dev=rds-dev\n```\n\n## Run\n\n```bash\nrds-dev\n```\n\n## TODO\n\n- Pass [Security Hub ECS.5 | ECS containers should be limited to read-only access to root filesystems](https://github.com/aws/amazon-ssm-agent/issues/588)\n- Allow picking of sg using name\n- Allow picking of subnets using name\n- Ability to auto-disconnect when when container closes unexpectedly\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillfarrell%2Faws-bastion","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwillfarrell%2Faws-bastion","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillfarrell%2Faws-bastion/lists"}