More recently, botocore has dropped support for the opsworkscm command modules, and awscli again needs to be updated. If your botocore is >= 1.40.19, your awscli needs to be >= 1.42.19.