sudo ln -s /usr/bin/python3 /usr/bin/python && sudo apt-get update && sudo apt-get upgrade -y
export AWS_DEFAULT_PROFILE=hogepiyo
aws codecommit create-repository --repository-name {name} --repository-description {description}
Get commit-id first.
aws codecommit get-branch --repository-name {name} --branch-name master
{
"branch": {
"branchName": "master",
"commitId": "{use this value}"
}
}
Create develop and set it as default branch.
aws codecommit create-branch --repository-name {name} --branch-name develop --commit-id {commitId}
aws codecommit update-default-branch --repository-name {name} --default-branch-name develop