Hi@akhtar,
You can add or update a file in a branch in an AWS CodeCommit repository and can generate a commit for the addition in the specified branch. The following put-file example adds a file named 'ExampleSolution.py' to a repository named 'MyDemoRepo'.
$ aws codecommit put-file \
    --repository-name MyDemoRepo \
    --branch-name feature \
    --file-content file://MyDirectory/ExampleSolution.py \
    --file-path /solutions/ExampleSolution.py \
    --parent-commit-id ID \
    --name "xxxxx" \
    --email "xxxxxx@example.com" \
    --commit-message "I added a third randomization routine."