{"id":20471806,"url":"https://github.com/signiant/liftr","last_synced_at":"2025-03-05T13:44:54.692Z","repository":{"id":93381020,"uuid":"110735956","full_name":"Signiant/liftr","owner":"Signiant","description":"Update Route53 weighted record sets ","archived":false,"fork":false,"pushed_at":"2021-05-26T21:45:08.000Z","size":125,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-01-16T02:23:56.359Z","etag":null,"topics":["aws","dns","route53"],"latest_commit_sha":null,"homepage":null,"language":"PHP","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/Signiant.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":"2017-11-14T19:36:52.000Z","updated_at":"2017-11-26T20:04:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"3541327f-ba42-4716-bc0f-057fd5440dfc","html_url":"https://github.com/Signiant/liftr","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/Signiant%2Fliftr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Signiant%2Fliftr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Signiant%2Fliftr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Signiant%2Fliftr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Signiant","download_url":"https://codeload.github.com/Signiant/liftr/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242039537,"owners_count":20061924,"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":["aws","dns","route53"],"created_at":"2024-11-15T14:17:17.137Z","updated_at":"2025-03-05T13:44:54.686Z","avatar_url":"https://github.com/Signiant.png","language":"PHP","readme":"# liftr\nLiftr is a simple, config driven app to allow easy manipulation of AWS Route53 weighted DNS record sets.  The app currently supports only weighted records with 2 sets and is designed for use cases like switching traffic between 2 endpoints in 2 regions.  It looks like a little like this:\n\n![Sample Screen](https://raw.githubusercontent.com/Signiant/liftr/master/images/liftr-screen.jpg)\n\n# Configuration\nThe app is driven by a small YAML configuration file that can be mounted into the docker container using a bind mount.  An example file looks like:\n\n```YAML\nactive_directory:\n  account_suffix: \"@ad.suffix\"\n  base_dn: \"DC=x,DC=y,DC=com\"\n  domain_controllers:\n    - \"pdc.x.y.com\"\n\nauth_groups:\n  - \"myADGroupWhoIsAllowed\"\n\nweighted_dns:\n  - name: \"myrecord.acme.com\"\n   zone: \"acme.com\"\n   zoneid: \"1234567890\"\n\n  - name: \"myrecord.acme.com\"\n    zone: \"acme.com\"\n    zoneid: \"1234567890\"\n```\nThe `active_directory` section is optional.  If it is present, you must also provide an `auth_groups` section.  When provided, the app will authenticate users with AD and only authorize users who are in one of the AD groups listed in the `auth_groups` section.\n\nWithin the weighted_dns section, list each record that you want the tool to be able to switch the weight between 2 sets.  Currently, the tool only handles records that have 2 sets and uses a minimum weight of 0 and a maxium of 100 as the low/high values.\n\n# Usage\n## On an EC2 instance with a role configured to allow access to Route53\n```bash\ndocker run -d -p -v /config/config.yaml:config.yaml 8080:80 signiant/liftr\n```\n## On an machine outside EC2\n```bash\ndocker run -d -p 8080:80\n              -e \"AWS_ACCESS_KEY_ID=XXXX\" \\\n              -e \"AWS_SECRET_ACCESS_KEY=XXXX\" \\\n              -v /config/config.yaml:config.yaml\n              signiant/liftr\n```\nFor the above execution, you can then access the tool using http://MY_DOCKER_HOST:8080\n\n## Optional Menu File\n\nThe app will check for the existance of a menu.php file and if present use that to render a boostrap nav bar.  For example, if you create a menu.php file like:\n\n```HTML\n      \u003c!-- Static navbar --\u003e\n      \u003cdiv class=\"navbar navbar-default\" role=\"navigation\"\u003e\n        \u003cdiv class=\"navbar-header\"\u003e\n          \u003cbutton type=\"button\" class=\"navbar-toggle\" data-toggle=\"collapse\" data-target=\".navbar-collapse\"\u003e\n            \u003cspan class=\"sr-only\"\u003eToggle navigation\u003c/span\u003e\n            \u003cspan class=\"icon-bar\"\u003e\u003c/span\u003e\n            \u003cspan class=\"icon-bar\"\u003e\u003c/span\u003e\n            \u003cspan class=\"icon-bar\"\u003e\u003c/span\u003e\n          \u003c/button\u003e\n          \u003ca class=\"navbar-brand\" href=\"http://www.signiant.com\"\u003eSigniant DevOps\u003c/a\u003e\n        \u003c/div\u003e\n        \u003cdiv class=\"navbar-collapse collapse\"\u003e\n          \u003cul class=\"nav navbar-nav\"\u003e\n            \u003cli class=\"dropdown\"\u003e\n              \u003ca href=\"#\" class=\"dropdown-toggle\" data-toggle=\"dropdown\"\u003e\u003cspan class=\"glyphicon glyphicon-wrench\"\u003e\u003c/span\u003e Dropdown 1 \u003cb class=\"caret\"\u003e\u003c/b\u003e\u003c/a\u003e\n              \u003cul class=\"dropdown-menu\"\u003e\n                \u003cli\u003e\u003ca href=\"http://www.signiant.com\" target=\"_blank\"\u003eSigniant 1\u003c/a\u003e\u003c/li\u003e\n                \u003cli class=\"divider\"\u003e\u003c/li\u003e\n                \u003cli\u003e\u003ca href=\"http://www.signiant.com\" target=\"_blank\"\u003e\u003cspan class=\"glyphicon glyphicon-cloud\"\u003e\u003c/span\u003e Signiant 2\u003c/a\u003e\u003c/li\u003e\n              \u003c/ul\u003e\n            \u003c/li\u003e\n          \u003cul class=\"nav navbar-nav navbar-right\"\u003e\n            \u003cli\u003e\u003ca href=\"http://status.signiant.com\" target=\"_blank\"\u003e\u003cspan class=\"glyphicon glyphicon-ok-sign\"\u003e\u003c/span\u003e Signiant Services Status\u003c/a\u003e\u003c/li\u003e\n          \u003c/ul\u003e\n        \u003c/div\u003e\u003c!--/.nav-collapse --\u003e\n      \u003c/div\u003e\n```\n\nand then run the container as follows:\n\n```bash\ndocker run -d -p \\\n              -v /config/config.yaml:config.yaml \\\n              -v /config/menu.php:menu.php \\\n              8080:80 signiant/liftr\n```\nYou'll get a menu rendered at the top with the options you've added.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsigniant%2Fliftr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsigniant%2Fliftr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsigniant%2Fliftr/lists"}