Terraform resource for managing an AWS CodeCatalyst Source Repository.
resource "aws_codecatalyst_source_repository" "example" {
name = "example-repo"
project_name = "example-project"
space_name = "example-space"
}
The following arguments are required:
name
- (Required) The name of the source repository. For more information about name requirements, see Quotas for source repositories.space_name
- (Required) The name of the CodeCatalyst space.project_name
- (Required) The name of the project in the CodeCatalyst space.The following arguments are optional:
description
- (Optional) The description of the project. This description will be displayed to all users of the project. We recommend providing a brief description of the project and its intended purpose.This resource exports the following attributes in addition to the arguments above:
id
- The name of the source repository.create
- (Default 30m
)update
- (Default 30m
)delete
- (Default 30m
)In Terraform v1.5.0 and later, use an import
block to import CodeCatalyst Source Repository using the id
. For example:
import {
to = aws_codecatalyst_source_repository.example
id = "example-repo"
}
Using terraform import
, import CodeCatalyst Source Repository using the id
. For example:
% terraform import aws_codecatalyst_source_repository.example example-repo