act-environments icon indicating copy to clipboard operation
act-environments copied to clipboard

Enhancement: AWS CLI

Open Steph0 opened this issue 4 years ago • 0 comments

Describe feature

Hey there. First thanks for all the great work you do.

I stumbled upong something while using act. I am using the docker image nektos/act-environments-ubuntu:18.04 which really helps testing my workflows. But the AWS CLI included in this env is aws-cli/1.18.2 Python/2.7.17 Linux/5.8.0-50-generic botocore/1.15.2 while the one used by github has one major more: AWS CLI version aws-cli/2.1.38 Python/3.8.8 Linux/5.4.0-1046-azure exe/x86_64.ubuntu.20 prompt/off.

This prevent testing AWS execution like

aws lambda invoke \
                --cli-binary-format raw-in-base64-out \
                --function-name ${function} \
                --payload "${lambda_payload}" \
                response.json

In ACT the --cli-binary-format raw-in-base64-out is rejected, while if you don't put this argument, your Github Actions fails because in AWS CLI 2+ it is necessary (defaults to base64).

Thought it would be nice to raise an enhancement request here about it.

Steph0 avatar Apr 28 '21 13:04 Steph0