The CodeCommit Repository data source allows the ARN, Repository ID, Repository URL for HTTP and Repository URL for SSH to be retrieved for an CodeCommit repository.
data "aws_codecommit_repository" "test" { repository_name = "MyTestRepository" }
The following arguments are supported:
repository_name
- (Required) The name for the repository. This needs to be less than 100 characters. In addition to all arguments above, the following attributes are exported:
repository_id
- The ID of the repository arn
- The ARN of the repository clone_url_http
- The URL to use for cloning the repository over HTTPS. clone_url_ssh
- The URL to use for cloning the repository over SSH.
© 2018 HashiCorpLicensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/aws/d/codecommit_repository.html