Skip to content

Help with AWS cli #26398

Answered by jherico
mohammed-salam asked this question in Actions
Discussion options

You must be logged in to vote

Personally I would recommend using a python script instead of the AWS CLI action, since the latter is only supported on Linux, and it’s documentation apparently hasn’t been fully updated to reflect the YAML syntax.  In fact the last commit was removing the example YAML syntax.  

I use the boto3 module for Python, which you can get like so

    - nameInstall python modules
      runpip install boto3

I then folow up with running a script something like this:

    - nameUpload artifact
      working-directory${{runner.workspace}}/build  

      shellbash      env:  
        AWS_ACCESS_KEY_ID${{ secrets.aws_access_key_id }}
        AWS_SECRET_ACCESS_KEY${{ secrets.aws_secret_access…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants