{"id":23696867,"url":"https://github.com/yleisradio/yle-aws-role","last_synced_at":"2025-09-03T00:32:03.690Z","repository":{"id":56899112,"uuid":"75462353","full_name":"Yleisradio/yle-aws-role","owner":"Yleisradio","description":"Tooling to help to assume AWS IAM roles","archived":false,"fork":false,"pushed_at":"2020-01-28T14:24:01.000Z","size":34,"stargazers_count":11,"open_issues_count":0,"forks_count":0,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-04-15T00:05:25.337Z","etag":null,"topics":["aws","aws-iam"],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/Yleisradio.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-12-03T08:38:41.000Z","updated_at":"2020-01-28T14:23:59.000Z","dependencies_parsed_at":"2022-08-21T01:50:27.216Z","dependency_job_id":null,"html_url":"https://github.com/Yleisradio/yle-aws-role","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yleisradio%2Fyle-aws-role","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yleisradio%2Fyle-aws-role/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yleisradio%2Fyle-aws-role/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yleisradio%2Fyle-aws-role/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Yleisradio","download_url":"https://codeload.github.com/Yleisradio/yle-aws-role/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":231819070,"owners_count":18431241,"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","aws-iam"],"created_at":"2024-12-30T06:17:26.459Z","updated_at":"2024-12-30T06:17:26.964Z","avatar_url":"https://github.com/Yleisradio.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# yle-aws-role\n\nTooling to help to assume [AWS IAM roles](http://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles.html).\n\nOffers a command-line helper tool, `asu`, and a Ruby library. After assuming the specified role, it sets the standard environment variables and configures the Ruby SDK for the role.\n\n## Installation\n\nThe project can be installed in a shell:\n\n```sh\ngem install yle-aws-role\n```\n\nTo use the Ruby library, add this line to your application's Gemfile:\n\n```ruby\ngem 'yle-aws-role'\n```\n\nand then execute `bundle`\n\n## Usage\n\n```plain\nUsage: asu \u003caccount\u003e [options] -- [command ...]\n   or: asu --list\n\n    account         The account ID or pattern of the role account\n    command         Command to execute with the role. Defaults to launching new shell session.\n\n    -d, --duration  Duration for the role credentials. Default: 900\n    --env           Print out environment variables and exit\n    -l, --list      Print out all configured account aliases\n    -q, --quiet     Be quiet\n    -r, --role      Name of the role\n\n    -h, --help      Prints this help\n    -v, --version   Prints the version information\n```\n\n### Configuration\n\nAccount aliases and their IDs can be specified in a configuration file. Then you can list the known accounts with `asu --list`, and use aliases (even with partial matching) when specifying the account for `asu`. Also the default role can be set.\n\nThe configuration file location defaults to _$HOME/.aws/asu.yaml_, but can be specified with the `ASU_CONFIG` environment variable.\n\nExample configuration:\n\n```yaml\ndefaults:\n  role: \"dev\"\n\naccounts:\n  foo-bar: \"123456789012\"\n  baz:     \"987654321098\"\n```\n\nWith this you can just call for example\n\n```sh\nasu foo -- aws s3 ls s3://mybucket/\n```\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/Yleisradio/yle-aws-role. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.\n\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyleisradio%2Fyle-aws-role","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyleisradio%2Fyle-aws-role","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyleisradio%2Fyle-aws-role/lists"}