Skip to content

Conversation

fbnfgc
Copy link

@fbnfgc fbnfgc commented Sep 16, 2025

What does this PR do?

Fixes retry command in documentation.
AWS cli v2 expects a base64 payload. Using cli-binary-format option is required to use raw json.

Motivation

# Before
aws lambda invoke --function-name REDACTED --payload '{"retry":"true"}' out  

Invalid base64: "{"retry":"true"}"

# After
aws lambda invoke --function-name REDACTED --cli-binary-format raw-in-base64-out --payload '{"retry":"true"}' out 
{
    "StatusCode": 200,
    "ExecutedVersion": "$LATEST"
}

Types of changes

  • Bug fix
  • New feature
  • Breaking change
  • Misc (docs, refactoring, dependency upgrade, etc.)

Check all that apply

  • This PR's description is comprehensive
  • This PR contains breaking changes that are documented in the description
  • This PR introduces new APIs or parameters that are documented and unlikely to change in the foreseeable future
  • This PR impacts documentation, and it has been updated (or a ticket has been logged)
  • This PR's changes are covered by the automated tests
  • This PR collects user input/sensitive content into Datadog
  • This PR passes the integration tests (ask a Datadog member to run the tests)
  • This PR passes the unit tests
  • This PR passes the installation tests (ask a Datadog member to run the tests)

aws cli v2 defaults to base64 payload. Use `cli-binary-format` option to use raw json.
@fbnfgc fbnfgc requested a review from a team as a code owner September 16, 2025 19:39
@ViBiOh ViBiOh added aws Documentation Everything related to the documentation. labels Sep 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
aws Documentation Everything related to the documentation.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants