{"id":18736508,"url":"https://github.com/hapag-lloyd/rackspace-aws-login","last_synced_at":"2026-01-07T23:05:01.035Z","repository":{"id":234409556,"uuid":"788839136","full_name":"Hapag-Lloyd/rackspace-aws-login","owner":"Hapag-Lloyd","description":"Shell/Python script to fetch credentials for AWS accounts from Rackspace, storing them in AWS profiles.","archived":false,"fork":false,"pushed_at":"2024-05-22T23:14:11.000Z","size":104,"stargazers_count":2,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-05-23T00:26:16.086Z","etag":null,"topics":["aws","credentials","login","python","rackspace","shell"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/Hapag-Lloyd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-19T07:26:03.000Z","updated_at":"2024-05-23T00:26:23.109Z","dependencies_parsed_at":"2024-05-23T00:26:21.338Z","dependency_job_id":"b8314117-36db-4296-849d-305ca92770c3","html_url":"https://github.com/Hapag-Lloyd/rackspace-aws-login","commit_stats":null,"previous_names":["hapag-lloyd/rackspace-aws-login"],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hapag-Lloyd%2Frackspace-aws-login","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hapag-Lloyd%2Frackspace-aws-login/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hapag-Lloyd%2Frackspace-aws-login/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hapag-Lloyd%2Frackspace-aws-login/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Hapag-Lloyd","download_url":"https://codeload.github.com/Hapag-Lloyd/rackspace-aws-login/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246269911,"owners_count":20750319,"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","credentials","login","python","rackspace","shell"],"created_at":"2024-11-07T15:21:11.321Z","updated_at":"2026-01-07T23:05:01.006Z","avatar_url":"https://github.com/Hapag-Lloyd.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rackspace-aws-login\n\nShell script to fetch credentials for AWS accounts from Rackspace, storing them in AWS profiles. It uses the official\nRackspace API.\n\nMain features:\n\n- fetch AWS credentials from Rackspace API\n- fetch new credentials only if old ones are expired or not present\n- use AWS profiles via `aws configure`\n- list all AWS accounts you are authorized to\n- supports Keepass for storing the Rackspace username and API key\n\n## Installation\n\nThe minimum requirements are the AWS CLI and [JQ](https://github.com/jqlang/jq). Install them first.\n\n## KeePass support\n\nCreate a new entry in your KeePass database with the following fields:\n\n- title: Rackspace\n- username: your Rackspace username\n- add a custom field with the name `api-key` and the value of your Rackspace API key\n\nSet the path to your KeePass database in the environment variable `KEEPASS_FILE`.\n\n```bash\nexport KEEPASS_FILE=\"$HOME/keepass.kdbx\"\n```\n\n## Usage\n\nExecute `aws_login` on the command line. The first time, the script creates a file in\n`$HOME/.config/rackspace-aws-login/aws_accounts.txt` caching your accounts. Remove the file to reset the accounts.\n\nIn case the script retrieves the credentials from Rackspace, it asks for the Rackspace username and API key. Check your\nRackspace account to set up the API key. You can put both in a KeePass database and the script will fetch them from there.\n\n```bash\n# place this in your .bash_profile\nsource ./aws_login.sh\n\n# log into an AWS account. The script presents a lists of all accounts\naws_login\n\n# AWS_PROFILE is now set\nexport | grep AWS_\n\n# list all S3 buckets in the account\naws s3 ls\n```\n\n## Contributing\n\nPlease read [CONTRIBUTING.md](.github/CONTRIBUTING.md) and [code of conduct](.github/CODE_OF_CONDUCT.md) for details on our, and\nthe process for submitting pull requests.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhapag-lloyd%2Frackspace-aws-login","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhapag-lloyd%2Frackspace-aws-login","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhapag-lloyd%2Frackspace-aws-login/lists"}