{"id":19339803,"url":"https://github.com/rubenv/ec2-disable-source-dest","last_synced_at":"2025-04-23T02:30:55.560Z","repository":{"id":66156149,"uuid":"70138918","full_name":"rubenv/ec2-disable-source-dest","owner":"rubenv","description":"Disable the EC2 source/dest check from within an instance.","archived":false,"fork":false,"pushed_at":"2018-05-29T14:33:02.000Z","size":8,"stargazers_count":7,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-02T06:43:13.291Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","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/rubenv.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}},"created_at":"2016-10-06T09:08:09.000Z","updated_at":"2024-03-08T16:38:28.000Z","dependencies_parsed_at":"2023-04-04T06:17:00.956Z","dependency_job_id":null,"html_url":"https://github.com/rubenv/ec2-disable-source-dest","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubenv%2Fec2-disable-source-dest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubenv%2Fec2-disable-source-dest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubenv%2Fec2-disable-source-dest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubenv%2Fec2-disable-source-dest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rubenv","download_url":"https://codeload.github.com/rubenv/ec2-disable-source-dest/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250357571,"owners_count":21417308,"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","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-10T03:23:54.556Z","updated_at":"2025-04-23T02:30:55.542Z","avatar_url":"https://github.com/rubenv.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ec2-disable-source-dest\n\nSmall helper to disable the EC2 source/dest check from within an instance.\n\n## Why?\n\nImagine you're setting up a [Kubernetes](http://kubernetes.io/) cluster, one\nthat scales automatically. On [Amazon EC2](https://aws.amazon.com/ec2/), you'd\ndo that with an autoscaling group.\n\nDepending on your network configuration, you'll need to disable source/dest\nchecking on your instance. You can do this manually in the config panel. But\nyou can't do it in the launch configuration of the autoscaling group.\n\nThis little helper reconfigures your instances once they have booted, so you\ndon't have to worry about it.\n\n## Usage\n\nSimply run it inside your EC2 instance:\n\n```\ndocker run --rm rubenv/ec2-disable-source-dest\n```\n\nYou'll need to set up an appropriate IAM role/policy that is capable of using\n`ec2:ModifyInstanceAttribute`.\n\n## Running on boot (CoreOS)\n\nAdd the following unit file to your cloud-config:\n\n```\n[Unit]\nDescription=Disable EC2 source/dest check\nRequires=docker.service\nAfter=docker.service\n\n[Service]\nType=oneshot\nRemainAfterExit=yes\nExecStart=/usr/bin/docker run --rm rubenv/ec2-disable-source-dest\n\n[Install]\nWantedBy=multi-user.target\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubenv%2Fec2-disable-source-dest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frubenv%2Fec2-disable-source-dest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubenv%2Fec2-disable-source-dest/lists"}