Since you've used single-quote, the variables wont be resolved. Also you can skip square brackets:
aws rds create-db-subnet-group
--db-subnet-group-name dbsubnet-$service_name
--db-subnet-group-description "dbsubnet-$service_name"
--subnet-ids $AID $BID
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…