On September 12, 2023, AWS will no longer maintain the Homebrew installer for AWS SAM CLI (aws/tap/aws-sam-cli).
For AWS supported installations, use the first-party installers (https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/install-sam-cli.html).
To continue using Homebrew, use the community supported installer (https://formulae.brew.sh/formula/aws-sam-cli).