{"id":23903289,"url":"https://github.com/chef-boneyard/awscreds","last_synced_at":"2025-04-11T00:31:48.024Z","repository":{"id":18624317,"uuid":"21830180","full_name":"chef-boneyard/awscreds","owner":"chef-boneyard","description":"Load AWS credentials using chef-vault and create a ~/.aws/config file","archived":false,"fork":false,"pushed_at":"2020-09-17T19:21:55.000Z","size":72,"stargazers_count":4,"open_issues_count":0,"forks_count":3,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-24T21:13:02.718Z","etag":null,"topics":["aws","chef","chef-vault","cookbook","hacktoberfest"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/chef-boneyard.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null}},"created_at":"2014-07-14T18:15:55.000Z","updated_at":"2022-06-08T18:22:05.000Z","dependencies_parsed_at":"2022-09-11T17:01:26.185Z","dependency_job_id":null,"html_url":"https://github.com/chef-boneyard/awscreds","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chef-boneyard%2Fawscreds","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chef-boneyard%2Fawscreds/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chef-boneyard%2Fawscreds/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chef-boneyard%2Fawscreds/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chef-boneyard","download_url":"https://codeload.github.com/chef-boneyard/awscreds/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248322214,"owners_count":21084333,"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","chef","chef-vault","cookbook","hacktoberfest"],"created_at":"2025-01-04T22:53:04.785Z","updated_at":"2025-04-11T00:31:48.004Z","avatar_url":"https://github.com/chef-boneyard.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# awscreds-cookbook\n\n[![Build Status](https://travis-ci.org/chef-cookbooks/awscreds.svg?branch=master)](https://travis-ci.org/chef-cookbooks/awscreds)\n[![Cookbook Version](https://img.shields.io/cookbook/v/awscreds.svg)](https://supermarket.chef.io/cookbooks/awscreds)\n\nLoads credentials from chef vault and creates an aws config file (.ini\nformat) from the loaded credentials. Supports multiple profiles and\nalternate locations for the credentials file.\n\n##Requirements\n### Platforms\n- Any platform supported by Chef\n\n### Chef\n- Chef 12.1+\n\n### Cookbooks\n- none\n\n## Attributes\n\n* `node['awscreds']['filename']` - The name of the file to create that\n  contains the credentials. Defaults to `/root/.aws/config`.\n* `node['awscreds']['vault_name']` - The name of the data bag/vault that\n  will contain the credentials. Defaults to 'awscreds'.\n* `node['awscreds']['vault_search']` - A search query to execute that will\n  grab the items from the vault. Defaults to '`*:*`' (i.e. grab every item in\n  the vault). You can change this so only some of the credentials stored in\n  the vault are put in the credentials file.\n* `node['awscreds']['default_profile']` - The AWS credentials file contains\n  a special profile called 'default' that is used by tools when no profile\n  name is specified. This setting allows you to specify which profile (i.e.\n  which vault item) becomes the default profile in the file. This defaults to\n  a profile/vault item called 'default'.\n\n## Usage\n\nCreate a chef vault item with your credentials in:\n\n    knife vault create awscreds default -S 'role:some-role' -A 'admin1,admin2'\n\nThe content should look like the following:\n\n    {\n      \"id\": \"default\",\n      \"aws_access_key_id\": \"AAAAAAAAAAAAAAAAAAAA\",\n      \"aws_secret_access_key\": \"ABC123abc123ABC123abc123ABC123abc123ABC1\"\n    }\n\nThe vault item ID will correspond to the AWS profile used in the config file.\nAn ID of 'default' (or the value of the 'default_profile' attribute if you\nhave changed it) will be the default item in the file, while other IDs will be\nadded as specific profiles.\n\n### awscreds::default\n\nInclude `awscreds` in your node's `run_list`:\n\n```json\n{\n  \"run_list\": [\n    \"recipe[awscreds::default]\"\n  ]\n}\n```\n\n##License \u0026 Authors\n\n**Author:** Cookbook Engineering Team ([cookbooks@chef.io](mailto:cookbooks@chef.io))\n\n**Copyright:** 2009-2016, Chef Software, Inc.\n\n```\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchef-boneyard%2Fawscreds","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchef-boneyard%2Fawscreds","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchef-boneyard%2Fawscreds/lists"}