{"id":13478818,"url":"https://github.com/unfor19/install-aws-cli-action","last_synced_at":"2025-03-17T01:31:30.202Z","repository":{"id":40402571,"uuid":"310833837","full_name":"unfor19/install-aws-cli-action","owner":"unfor19","description":"Install AWS CLI on a GitHub Actions Linux host","archived":false,"fork":false,"pushed_at":"2024-01-29T14:50:33.000Z","size":121,"stargazers_count":56,"open_issues_count":2,"forks_count":31,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-05-01T13:36:33.501Z","etag":null,"topics":["action","aws","aws-cli","github-action"],"latest_commit_sha":null,"homepage":"https://meirg.co.il","language":"Shell","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/unfor19.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":"2020-11-07T11:54:28.000Z","updated_at":"2024-06-18T14:06:45.294Z","dependencies_parsed_at":"2024-06-18T14:06:44.198Z","dependency_job_id":"bfe2e597-765f-4118-85c6-317f82862a2b","html_url":"https://github.com/unfor19/install-aws-cli-action","commit_stats":{"total_commits":120,"total_committers":2,"mean_commits":60.0,"dds":0.008333333333333304,"last_synced_commit":"457b7980b125044247e455d87b9a26fc2299b787"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unfor19%2Finstall-aws-cli-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unfor19%2Finstall-aws-cli-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unfor19%2Finstall-aws-cli-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unfor19%2Finstall-aws-cli-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/unfor19","download_url":"https://codeload.github.com/unfor19/install-aws-cli-action/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243835959,"owners_count":20355613,"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":["action","aws","aws-cli","github-action"],"created_at":"2024-07-31T16:02:03.834Z","updated_at":"2025-03-17T01:31:29.895Z","avatar_url":"https://github.com/unfor19.png","language":"Shell","readme":"# install-aws-cli-action\n\n[![test](https://github.com/unfor19/install-aws-cli-action/actions/workflows/test.yaml/badge.svg)](https://github.com/unfor19/install-aws-cli-action/actions?query=workflow%3Atest)\n[![test-action](https://github.com/unfor19/install-aws-cli-action-test/workflows/test-action/badge.svg)](https://github.com/unfor19/install-aws-cli-action-test/actions?query=workflow%3Atest-action)\n\nInstall/Setup AWS CLI on a GitHub Actions Linux host.\n\nAfter this action, every step is capable of running `aws` CLI, and it's up to you to set AWS credentials in the subsequent steps.\n\nTested in [unfor19/install-aws-cli-action-test](https://github.com/unfor19/install-aws-cli-action-test/actions?query=workflow%3Atest-action)\n\n**TIP**: It's possible to use the [entrypoint.sh](https://github.com/unfor19/install-aws-cli-action/blob/master/entrypoint.sh) script as a \"bootstrap script to install/setup aws cli on Linux\", regardless of GitHub Actions; see [Other Options](https://github.com/unfor19/install-aws-cli-action#other-options) for more details.\n\n## Usage\n\nValid AWS CLI `version` values:\n\n- `1` - latest v1\n- `2` - latest v2 (default)\n- `1.##.##` - specific v1\n- `2.##.##` - specific v2\n\n### Usage\n\nAdd one of the following steps to a job in your workflow.\n\n#### Common Usage\n\n```yaml\n- id: install-aws-cli\n  uses: unfor19/install-aws-cli-action@v1\n  with:\n    version: 2                         # default\n    verbose: false                     # default\n    arch: amd64                        # allowed values: amd64, arm64\n```\n\n#### Full Example\n\n```yaml\n- id: install-aws-cli\n  uses: unfor19/install-aws-cli-action@v1\n  with:\n    version: 2                         # default\n    verbose: false                     # default\n    arch: amd64                        # allowed values: amd64, arm64\n    bindir: \"/usr/local/bin\"           # default\n    installrootdir: \"/usr/local\"       # default\n    rootdir: \"\"                        # defaults to \"PWD\"\n    workdir: \"\"                        # defaults to \"PWD/unfor19-awscli\"\n```\n\n### Test with GitHub Matrix\n\nSee [unfor19/install-aws-cli-action-test/blob/master/.github/workflows/test-action.yml](https://github.com/unfor19/install-aws-cli-action-test/blob/master/.github/workflows/test-action.yml)\n\n```yaml\nname: test-action\n\non:\n  push:\n\njobs:\n  test:\n    runs-on: ubuntu-20.04\n    strategy:\n      matrix:\n        include:\n          - TEST_NAME: \"Latest v2\"\n            AWS_CLI_VERSION: \"2\"\n          - TEST_NAME: \"Specific v2\"\n            AWS_CLI_VERSION: \"2.0.30\"\n          - TEST_NAME: \"Latest v1\"\n            AWS_CLI_VERSION: \"1\"\n          - TEST_NAME: \"Specific v1\"\n            AWS_CLI_VERSION: \"1.32.15\"\n          - TEST_NAME: \"No Input\"\n    name: Test ${{ matrix.TEST_NAME }} ${{ matrix.AWS_CLI_VERSION }}\n    steps:\n      - name: Test ${{ matrix.TEST_NAME }}\n        id: install-aws-cli\n        uses: unfor19/install-aws-cli-action@master\n        with:\n          version: ${{ matrix.AWS_CLI_VERSION }}\n      - run: aws --version\n        shell: bash\n```\n\n## Other options\n\n- Execute locally\n  ```bash\n  curl -L -o install-aws.sh https://raw.githubusercontent.com/unfor19/install-aws-cli-action/master/entrypoint.sh \u0026\u0026 \\\n  chmod +x install-aws.sh\n  ./install-aws.sh \"v2\" \"amd64\"\n  rm install-aws.sh  \n  ```\n- Dockerfile - Add this to your Dockerfile\n  ```dockerfile\n  # Install AWS CLI\n  WORKDIR /tmp/\n  RUN curl -L -o install-aws.sh https://raw.githubusercontent.com/unfor19/install-aws-cli-action/master/entrypoint.sh \u0026\u0026 \\\n      sudo chmod +x install-aws.sh \u0026\u0026 \\\n      sudo ./install-aws.sh \"v2\" \"amd64\" \u0026\u0026 \\\n      sudo rm install-aws.sh\n  ```\n  **NOTE**: On some Docker images, you might need to add `sudo` in front of each command, like `sudo curl -L ..`, `sudo chmod ..`, etc.\n\n## Local Development\n\n\u003cdetails\u003e\n\n\u003csummary\u003eExpand/Collapse\u003c/summary\u003e\n\n### Requirements\n\n- Docker\n\n### Getting Started\n\n1. Build Docker image\n   ```bash\n   docker build -t \"install-aws-cli-action\" .\n   ```\n1. Run container\n   ```bash\n   docker run --rm -it \"install-aws-cli-action\" \"v2\" \"amd64\"\n   ```\n\n\u003c/details\u003e\n\n## Authors\n\nCreated and maintained by [Meir Gabay](https://github.com/unfor19)\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](https://github.com/unfor19/install-aws-cli-action/blob/master/LICENSE) file for details\n","funding_links":[],"categories":["Shell"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funfor19%2Finstall-aws-cli-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funfor19%2Finstall-aws-cli-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funfor19%2Finstall-aws-cli-action/lists"}