{"id":26863231,"url":"https://github.com/djcass44/aws-lambda-shellstart","last_synced_at":"2026-04-20T03:31:21.030Z","repository":{"id":42651296,"uuid":"201739549","full_name":"djcass44/aws-lambda-shellstart","owner":"djcass44","description":"AWS Lambda used for updating docker-compose deployments","archived":false,"fork":false,"pushed_at":"2022-03-29T21:56:36.000Z","size":18,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-13T20:50:25.590Z","etag":null,"topics":["aws","aws-lambda","boto3","docker-compose","lambda","python"],"latest_commit_sha":null,"homepage":null,"language":"Python","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/djcass44.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}},"created_at":"2019-08-11T08:41:57.000Z","updated_at":"2019-08-11T13:40:40.000Z","dependencies_parsed_at":"2022-09-14T16:01:45.907Z","dependency_job_id":null,"html_url":"https://github.com/djcass44/aws-lambda-shellstart","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/djcass44/aws-lambda-shellstart","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djcass44%2Faws-lambda-shellstart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djcass44%2Faws-lambda-shellstart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djcass44%2Faws-lambda-shellstart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djcass44%2Faws-lambda-shellstart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/djcass44","download_url":"https://codeload.github.com/djcass44/aws-lambda-shellstart/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djcass44%2Faws-lambda-shellstart/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32031529,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T00:18:06.643Z","status":"online","status_checked_at":"2026-04-20T02:00:06.527Z","response_time":94,"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":["aws","aws-lambda","boto3","docker-compose","lambda","python"],"created_at":"2025-03-31T02:55:37.356Z","updated_at":"2026-04-20T03:31:21.014Z","avatar_url":"https://github.com/djcass44.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Shellstart\n\nThis repository contains an AWS Lambda used for updating a docker-compose deployment.\nThis script was written using Python3.6 and therefore will probably not work with Python2.\n\n### Clarify 'updating'\n\nUpdating in this context means the following:\n\n1. Stop the container(s)\n2. Pull for newer images\n3. Start the container using the new image\n\nThe actual shell which is executed is `docker-compose stop \u0026\u0026 docker-compose pull \u0026\u0026 docker-compose up -d`, however it allows for more fine-grained control of which containers to update.\n\n\n### Lambda Event Data\n```json\n{\n  \"s3\": {\n    \"key\": \"my-key.pem\",\n    \"bucket\": \"my-s3-bucket\"\n  },\n  \"ssh\": {\n    \"target\": \"192.168.0.1\",\n    \"user\": \"ec2-user\",\n    \"directory\": \"/home/ec2-user/production\"\n  },\n  \"containers\": [\n    \"my-app-ui\",\n    \"my-app-api\"\n  ]\n}\n```\n\n`ssh.target`: the host to SSH into. Can be IP or hostname\n\n`ssh.directory`: the directory of the docker-compose.yaml/yml\n\n`containers`: (optional) the containers to update. All if not provided\n\n### How is it done?\n\n1. Download SSH key from S3\n2. SSH into your target\n3. Execute docker-compose commands\n\n\n## Contributions\n\nGo for it! Open a merge request and I'll take a look.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdjcass44%2Faws-lambda-shellstart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdjcass44%2Faws-lambda-shellstart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdjcass44%2Faws-lambda-shellstart/lists"}