Dynamodb billing mode

I have two aws env dev & QA, in dev env dynamo DB with auto-scaling terraform script enable billing mode provisioned but in QA env billing mode try to enable PAY_PER_REQUEST through terraform script while updating billing mode, I m getting the error.