Resource: aws_codecatalyst_source_repository

Terraform resource for managing an AWS CodeCatalyst Source Repository.

Example Usage

Basic Usage

resource "aws_codecatalyst_source_repository" "example" {
  name         = "example-repo"
  project_name = "example-project"
  space_name   = "example-space"
}

Argument Reference

The following arguments are required:

The following arguments are optional:

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Timeouts

Configuration options:

Import

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