```hcl
variable "alphagov_git_repositories" {
  type = "list"

  default = [
    "digitalmarketplace-api",
    "digitalmarketplace-search-api",
    "digitalmarketplace-admin-frontend",
    "digitalmarketplace-agreements",
    "digitalmarketplace-antivirus-api",
    "digitalmarketplace-apiclient",
    "digitalmarketplace-aws",
    "digitalmarketplace-bad-words",
    "digitalmarketplace-brief-responses-frontend",
    "digitalmarketplace-briefs-frontend",
    "digitalmarketplace-buyer-frontend",
    "digitalmarketplace-content-loader",
    "digitalmarketplace-credentials",
    "digitalmarketplace-docker-base",
    "digitalmarketplace-frameworks",
    "digitalmarketplace-frontend-toolkit",
    "digitalmarketplace-functional-tests",
    "digitalmarketplace-jenkins",
    "digitalmarketplace-maintenance",
    "digitalmarketplace-manual",
    "digitalmarketplace-performance-testing",
    "digitalmarketplace-router",
    "digitalmarketplace-runner",
    "digitalmarketplace-scripts",
    "digitalmarketplace-supplier-frontend",
    "digitalmarketplace-test-utils",
    "digitalmarketplace-user-frontend",
    "digitalmarketplace-utils",
    "digitalmarketplace-visual-regression",
  ]
}

resource "aws_codecommit_repository" "codecommit_backup_repos" {
  count = "${length(var.alphagov_git_repositories)}"

  repository_name = "${var.alphagov_git_repositories[count.index]}"
  description     = "Backup CodeCommit repo for github.com/alphagov/${var.alphagov_git_repositories[count.index]}"
}
```

Update default branches to master on aws backup repos
user
```hcl
variable "alphagov_git_repositories" {
  type = "list"

  default = [
    "digitalmarketplace-api",
    "digitalmarketplace-search-api",
    "digitalmarketplace-admin-frontend",
    "digitalmarketplace-agreements",
    "digitalmarketplace-antivirus-api",
    "digitalmarketplace-apiclient",
    "digitalmarketplace-aws",
    "digitalmarketplace-bad-words",
    "digitalmarketplace-brief-responses-frontend",
    "digitalmarketplace-briefs-frontend",
    "digitalmarketplace-buyer-frontend",
    "digitalmarketplace-content-loader",
    "digitalmarketplace-credentials",
    "digitalmarketplace-docker-base",
    "digitalmarketplace-frameworks",
    "digitalmarketplace-frontend-toolkit",
    "digitalmarketplace-functional-tests",
    "digitalmarketplace-jenkins",
    "digitalmarketplace-maintenance",
    "digitalmarketplace-manual",
    "digitalmarketplace-performance-testing",
    "digitalmarketplace-router",
    "digitalmarketplace-runner",
    "digitalmarketplace-scripts",
    "digitalmarketplace-supplier-frontend",
    "digitalmarketplace-test-utils",
    "digitalmarketplace-user-frontend",
    "digitalmarketplace-utils",
    "digitalmarketplace-visual-regression",
  ]
}

resource "aws_codecommit_repository" "codecommit_backup_repos" {
  count = "${length(var.alphagov_git_repositories)}"

  repository_name = "${var.alphagov_git_repositories[count.index]}"
  description     = "Backup CodeCommit repo for github.com/alphagov/${var.alphagov_git_repositories[count.index]}"
  default_branch  = "master"
}
```
assistant