Difference between revisions of "Aws-actions/configure-aws-credentials"

From wikieduonline
Jump to navigation Jump to search
(Redirected page to Aws-actions)
Tag: New redirect
 
 
(50 intermediate revisions by 3 users not shown)
Line 1: Line 1:
#redirect [[aws-actions]]
+
{{lc}}
 +
* https://github.com/aws-actions/configure-aws-credentials
 +
 
 +
 
 +
  [[aws-actions/]]configure-aws-credentials@v4
 +
  [[aws-actions/]]configure-aws-credentials@v3
 +
  [[aws-actions/]]configure-aws-credentials@v2
 +
  aws-actions/configure-aws-credentials@v1
 +
 
 +
 
 +
 
 +
{{configure-aws-credentials}}
 +
 
 +
 
 +
 
 +
 
 +
- name: Configure AWS credentials
 +
        id: creds
 +
        uses: aws-actions/configure-aws-credentials@v4
 +
        with:
 +
          [[audience:]] [[sts.amazonaws.com]]
 +
          role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID_YOURENV }}:role/OIDC_YourGitHubActions
 +
          aws-region: ${{ secrets.[[AWS_REGION]]_YOURENV }}
 +
 
 +
( audience: The [[JWT]] audience when using [[OIDC]] )
 +
 
 +
 
 +
 
 +
 
 +
== Official example ==
 +
    - name: Configure AWS Credentials
 +
      uses: aws-actions/configure-aws-credentials@v1
 +
      with:
 +
        [[role-to-assume]]: arn:aws:iam::123456789100:role/my-github-actions-role
 +
        aws-region: us-east-2
 +
 
 +
== Related ==
 +
* <code>[[aws-actions]]/configure-aws-credentials@v1-[[node16]]</code>
 +
* <code>[[aws-access-key-id]]</code>
 +
* <code>[[secrets.]]</code>
 +
* <code>[[env.]]</code>
 +
* [[Node 16]]
 +
 
 +
== Activities ==
 +
* Understand security benefits of <code>[[role-to-assume]]</code> vs <code>[[aws-access-key-id]]</code>  https://github.com/aws-actions/configure-aws-credentials#assuming-a-role
 +
 
 +
== See also ==
 +
* {{aws-actions/configure-aws-credentials}}
 +
* {{aws-actions}}
 +
* {{uses:}}
 +
 
 +
[[Category:AWS]]

Latest revision as of 14:40, 25 August 2024


 aws-actions/configure-aws-credentials@v4
 aws-actions/configure-aws-credentials@v3
 aws-actions/configure-aws-credentials@v2
 aws-actions/configure-aws-credentials@v1


  aws-actions/configure-aws-credentials@v1
    - 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: ${{ env.AWS_REGION }}



- name: Configure AWS credentials
       id: creds
       uses: aws-actions/configure-aws-credentials@v4
       with:
         audience: sts.amazonaws.com
         role-to-assume: arn:aws:iam::$Template:Secrets.AWS ACCOUNT ID YOURENV:role/OIDC_YourGitHubActions
         aws-region: ${{ secrets.AWS_REGION_YOURENV }}
( audience: The JWT audience when using OIDC )



Official example[edit]

   - name: Configure AWS Credentials
     uses: aws-actions/configure-aws-credentials@v1
     with:
       role-to-assume: arn:aws:iam::123456789100:role/my-github-actions-role
       aws-region: us-east-2

Related[edit]

Activities[edit]

See also[edit]

Advertising: