Resource: aws_codestarconnections_host

Provides a CodeStar Host.

Example Usage

resource "aws_codestarconnections_host" "example" {
  name              = "example-host"
  provider_endpoint = "https://example.com"
  provider_type     = "GitHubEnterpriseServer"
}

Argument Reference

This resource supports the following arguments:

A vpc_configuration block supports the following arguments:

Attribute Reference

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

Import

In Terraform v1.5.0 and later, use an import block to import CodeStar Host using the ARN. For example:

import {
  to = aws_codestarconnections_host.example-host
  id = "arn:aws:codestar-connections:us-west-1:0123456789:host/79d4d357-a2ee-41e4-b350-2fe39ae59448"
}

Using terraform import, import CodeStar Host using the ARN. For example:

% terraform import aws_codestarconnections_host.example-host arn:aws:codestar-connections:us-west-1:0123456789:host/79d4d357-a2ee-41e4-b350-2fe39ae59448