generated from hashicorp/terraform-provider-scaffolding
-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
de9cee1
commit a7f65df
Showing
10 changed files
with
131 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Import an account level connector | ||
terraform import harness_connector.example <connector_id> | ||
|
||
# Import an organization level connector | ||
terraform import harness_connector.example <organization_id>/<connector_id> | ||
|
||
# Import an project level connector | ||
terraform import harness_connector.example <organization_id>/<project_id>/<connector_id> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Create a kubernetes connector | ||
|
||
resource "harness_connector" "test" { | ||
identifier = "k8s" | ||
name = "Test Kubernetes Cluster" | ||
|
||
k8s_cluster { | ||
service_account { | ||
master_url = "https://kubernetes.example.com" | ||
service_account_token_ref = "account.k8s_service_account_token" | ||
} | ||
} | ||
} | ||
|
||
# Create a docker registry connector | ||
|
||
resource "harness_connector" "test" { | ||
identifier = "dockerhub" | ||
name = "Docker Hub" | ||
|
||
docker_registry { | ||
type = "DockerHub" | ||
url = "https://hub.docker.io" | ||
|
||
credentials { | ||
username = "admin" | ||
password_ref = "account.docker_registry_password" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Import using organization id | ||
terraform import harness_organization.example <organization_id> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
resource "harness_organization" "test" { | ||
identifier = "MyOrg" | ||
name = "My Otganization" | ||
description = "An example organization" | ||
tags = ["foo:bar", "baz:qux"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Import using the connector using the organization id and the connector id | ||
terraform import harness_connector.example <organization_id>/<connector_id> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
resource "harness_project" "test" { | ||
identifier = "testproject" | ||
name = "Test Project" | ||
color = "#0063F7" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters