aws_codecommit_repository

Provides a CodeCommit Repository Resource.

Example Usage

resource "aws_codecommit_repository" "test" {
  repository_name = "MyTestRepository"
  description     = "This is the Sample App Repository"
}

Argument Reference

The following arguments are supported:

  • repository_name - (Required) The name for the repository. This needs to be less than 100 characters.
  • description - (Optional) The description of the repository. This needs to be less than 1000 characters
  • default_branch - (Optional) The default branch of the repository. The branch specified here needs to exist.

Attributes Reference

In addition to all arguments above, the following attributes are exported:

Import

Codecommit repository can be imported using repository name, e.g.

$ terraform import aws_codecommit_repository.imported ExistingRepo

© 2018 HashiCorp
Licensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/aws/r/codecommit_repository.html