{"id":48002038,"url":"https://github.com/statiolake/aws-unlock","last_synced_at":"2026-04-04T12:23:57.317Z","repository":{"id":191857235,"uuid":"685303469","full_name":"statiolake/aws-unlock","owner":"statiolake","description":null,"archived":false,"fork":false,"pushed_at":"2025-08-18T13:13:35.000Z","size":67,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-18T15:13:40.579Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/statiolake.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2023-08-31T00:05:37.000Z","updated_at":"2025-05-12T16:19:09.000Z","dependencies_parsed_at":"2024-03-13T06:24:05.044Z","dependency_job_id":"a907d612-9211-4e7f-b132-18b373064b43","html_url":"https://github.com/statiolake/aws-unlock","commit_stats":null,"previous_names":["statiolake/aws-unlock"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/statiolake/aws-unlock","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/statiolake%2Faws-unlock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/statiolake%2Faws-unlock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/statiolake%2Faws-unlock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/statiolake%2Faws-unlock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/statiolake","download_url":"https://codeload.github.com/statiolake/aws-unlock/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/statiolake%2Faws-unlock/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31399820,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T10:20:44.708Z","status":"ssl_error","status_checked_at":"2026-04-04T10:20:06.846Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":"2026-04-04T12:23:57.235Z","updated_at":"2026-04-04T12:23:57.297Z","avatar_url":"https://github.com/statiolake.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# aws-unlock\n\nUnlock your AWS profile as needed.\n\nYour AWS profiles and credentials stored in `~/.aws' are usually always available. So sometimes you can accidentally deploy your infrastructure to an unexpected environment. For example, even if you intended to deploy your new application to your development AWS environment, your terraform will happily deploy it to your production environment, just because of a single mistake in the terraform definition. A countermeasure to this error is to comment out all your credentials most of the time. Only explicitly uncomment them when you actually need them.\n\nThe `aws-unlock` tool lets you easily edit and manage your credentials. After installation, the first thing you should do is `aws-unlock --lock-all` to comment out all current credentials. Then you can unlock your credentials only when you need to. There are two ways to do this.\n\n## Usage 1 - Unlock specific profiles for a specified period of time\n\nYou can unlock your credentials for a period of time. The following\ncommand will unlock `example-profile` for 60 seconds:\n\n```\naws-unlock example-profile -s 60\n```\n\n## Usage 2 - Run commands with AWS credentials in environment variables\n\nYou can run commands with AWS credentials automatically set in environment variables. By default, credentials remain locked and are only temporarily accessed to set AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_SESSION_TOKEN, and AWS_REGION:\n\n```\naws-unlock example-profile -- terraform plan\n```\n\nIf you need the credentials to remain unlocked during command execution (e.g., for interactive authentication), use the `--keep-unlocked-during-run` flag:\n\n```\naws-unlock example-profile --keep-unlocked-during-run -- aws sso login\n```\n\n## Install\n\nYou can install aws-unlock via cargo:\n\n```\ncargo install aws-unlock\n```\n\nAlternatively, you can download your binary from [GitHub Release](https://github.com/statiolake/aws-unlock/releases/latest) page.\n\n## Discraimer\n\nThis tool parses and rebuilds your AWS configuration, so it sometimes corrupts\nyour configuration file. For example, this tool does not preserve your\ncomments during rebuild. Please be careful and make a backup before using this\ntool.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstatiolake%2Faws-unlock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstatiolake%2Faws-unlock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstatiolake%2Faws-unlock/lists"}