Skip to content

sample-apps - CLI v2 Invalid base64 error on lambda invoke #180

@Raptormstr

Description

@Raptormstr

The AWS CLI v2 has a breaking change in which it treats a file:// CLI option as base64-encoded text.
https://docs.aws.amazon.com/cli/latest/userguide/cliv2-migration.html#cliv2-migration-binaryparam

This breaks the 4-invoke.sh script lambda invoke call.

aws lambda invoke --function-name $FUNCTION --payload file://event.json out.json

One fix is to add the argument --cli-binary-format raw-in-base64-out which reverts the call back to CLI v1 behavior.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions