{"id":22257998,"url":"https://github.com/szechyjs/aws-bastion","last_synced_at":"2025-08-31T04:06:49.930Z","repository":{"id":141242763,"uuid":"264770278","full_name":"szechyjs/aws-bastion","owner":"szechyjs","description":"Create on demand bastions with Fargate","archived":false,"fork":false,"pushed_at":"2020-05-17T22:49:11.000Z","size":9,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-29T22:27:48.974Z","etag":null,"topics":["bastion","cloudformation","ecs","fargate","jumpbox","lambda","ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/szechyjs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2020-05-17T22:40:43.000Z","updated_at":"2025-02-22T05:36:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"9b31c7dd-bfc7-449e-9819-d1b80e37c19c","html_url":"https://github.com/szechyjs/aws-bastion","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/szechyjs/aws-bastion","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/szechyjs%2Faws-bastion","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/szechyjs%2Faws-bastion/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/szechyjs%2Faws-bastion/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/szechyjs%2Faws-bastion/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/szechyjs","download_url":"https://codeload.github.com/szechyjs/aws-bastion/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/szechyjs%2Faws-bastion/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272936421,"owners_count":25018160,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-31T02:00:09.071Z","response_time":79,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["bastion","cloudformation","ecs","fargate","jumpbox","lambda","ruby"],"created_at":"2024-12-03T08:13:12.663Z","updated_at":"2025-08-31T04:06:49.911Z","avatar_url":"https://github.com/szechyjs.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AWS Bastion\n\nThis work is largely based on [jdhollis/bastions-on-demand](https://github.com/jdhollis/bastions-on-demand).\nI'm not a big fan of Terraform or Clojure so I rewrote it using Cloudformation and ruby.\n\n## Setup\n1. Create a S3 bucket for storing lambda code. Create this however you want.\n1. Update the variables in `deploy-stack.sh`\n    - `BUCKET`: the name of the bucket created in the previous step\n    - `CLUSTER_VPC_ID`: the VPC that the basion should belong to\n    - `CLUSTER_DEFAULT_SG_ID`: the default SG ID for the VPC\n    - `CLUSTER_SUBNET_IDS`: a comma separated list of subnets IDS\n1. Run `./deploy-stack.sh` to create/update the Cloudformation stack\n1. Build and push the bastion image to ECR\n    - `cd image`\n    - `./login.sh`\n    - `./build.sh`\n    - `./push.sh`\n\n## Using\n*CLI tool coming soon*\n\n### Creating\n- Send a signed `POST` request to the `ApiUrl` in the Cloudformation output.\n- `ssh ops@ip-from-create-response`\n- *Note:* Ensure you have added your SSH public key to your AWS user account.\ns\n### Destroying\n- Send a signed `DELETE` request to the `ApiUrl` in the Cloudformation output.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fszechyjs%2Faws-bastion","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fszechyjs%2Faws-bastion","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fszechyjs%2Faws-bastion/lists"}