If you have multiple AWS credentials, make sure you set your env as [default] under ~/.aws/credential. Otherwise, using the aws_profile under the deploy.sh will cause error below:
Unable to upload artifact None referenced by CodeUri parameter of CodeCommitBackupLambda resource.
An error occurred (AccessDenied) when calling the PutObject operation: Access Denied