mirror of
https://github.com/aws-actions/configure-aws-credentials.git
synced 2026-09-04 06:15:07 +09:00
chore(docs): add example of using aws cli
This commit is contained in:
@@ -15,6 +15,30 @@ Add the following step to your workflow:
|
|||||||
aws-region: us-east-2
|
aws-region: us-east-2
|
||||||
```
|
```
|
||||||
|
|
||||||
|
For example, you can use this action with the AWS CLI available in [GitHub's hosted virtual environments](https://help.github.com/en/actions/reference/software-installed-on-github-hosted-runners).
|
||||||
|
|
||||||
|
```
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
name: Upload to Amazon S3
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Configure AWS credentials
|
||||||
|
uses: aws-actions/configure-aws-credentials@v1
|
||||||
|
with:
|
||||||
|
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||||
|
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||||
|
aws-region: us-east-2
|
||||||
|
|
||||||
|
- name: Copy files to S3 with the AWS CLI
|
||||||
|
run: |
|
||||||
|
aws s3 sync . s3://my-s3-website-bucket
|
||||||
|
```
|
||||||
|
|
||||||
See [action.yml](action.yml) for the full documentation for this action's inputs and outputs.
|
See [action.yml](action.yml) for the full documentation for this action's inputs and outputs.
|
||||||
|
|
||||||
## Credentials
|
## Credentials
|
||||||
|
|||||||
Reference in New Issue
Block a user