How to add user to an IAM group

Below is the command to add user to an IAM group where username is the name of the user and TeamA is the name of the group.

aws iam add-user-to-group --group-name TeamA --user-name username

See also  How to send a message to an SQS queue using Lambda when a file is uploaded to an S3 bucket