-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added missing examples including those for import documentation. * Generated the resulting docs changes.
- Loading branch information
Showing
32 changed files
with
284 additions
and
59 deletions.
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
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
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
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 @@ | ||
data "cockroach_organization" "prod" {} |
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 @@ | ||
# format: <cluster id>:<cidr ip>/<cidr mask> | ||
terraform import cockroach_allow_list.home_office 1f69fdd2-600a-4cfc-a9ba-16995df0d77d:123.123.1.1/32 |
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 @@ | ||
resource "cockroach_allow_list" "vpn" { | ||
name = "vpn" | ||
cidr_ip = "123.123.1.1" | ||
cidr_mask = 32 | ||
ui = true | ||
sql = true | ||
cluster_id = cockroach_cluster.staging.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,21 @@ | ||
variable "client_certificate" { | ||
type = string | ||
description = "The X509 certificate in PEM format." | ||
// For example in tfvars: | ||
// | ||
//client_certificate = <<-EOT | ||
//-----BEGIN CERTIFICATE----- | ||
//MIIDgTCCAmigAwIBAgIBADANBgkqhkiG9w0BAQ0FADBaMQswCQYDVQQGEwJ1czEL | ||
//MAkGA1UECAwCV0ExDjAMBgNVBAoMBXRlc3QxMQ4wDAYDVQQDDAV0ZXN0MTEOMAwG | ||
//A1UEBwwFdGVzdDExDjAMBgNVBAsMBXRlc3QxMB4XDTIzMDMyMTE5MDczN1oXDTI2 | ||
//MDMyMDE5MDczN1owWjELMAkGA1UEBhMCdXMxCzAJBgNVBAgMAldBMQ4wDAYDVQQK | ||
//DAV0ZXN0MTEOMAwGA1UEAwwFdGVzdDExDjAMBgNVBAcMBXRlc3QxMQ4wDAYDVQQL | ||
//... | ||
//-----END CERTIFICATE----- | ||
//EOT | ||
} | ||
|
||
resource "cockroach_client_ca_cert" "prod" { | ||
id = cockroach_cluster.prod.id | ||
x509_pem_cert = var.client_certificate | ||
} |
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,27 @@ | ||
resource "cockroach_cluster" "dedicated" { | ||
name = "cockroach-dedicated" | ||
cloud_provider = "GCP" | ||
dedicated = { | ||
storage_gib = 15 | ||
machine_type = "n1-standard-4" | ||
} | ||
regions = [ | ||
{ | ||
name = "us-central1" | ||
node_count = 1 | ||
} | ||
] | ||
} | ||
|
||
resource "cockroach_cluster" "serverless" { | ||
name = "cockroach-serverless" | ||
cloud_provider = "GCP" | ||
serverless = { | ||
spend_limit = 1 | ||
} | ||
regions = [ | ||
{ | ||
name = "us-east1" | ||
} | ||
] | ||
} |
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,11 @@ | ||
resource "cockroach_cmek" "dedicated" { | ||
id = cockroach_cluster.dedicated.id | ||
regions = [{ | ||
region : "us-central-1" | ||
key : { | ||
auth_principal : "arn:aws:iam::account:role/role-name-with-path" | ||
type : "AWS_KMS" | ||
uri : "arn:aws:kms:us-west-2:111122223333:key/id-of-kms-key" | ||
} | ||
}] | ||
} |
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 @@ | ||
# format: <cluster id>:<database name> | ||
terraform import cockroach_database.my_database 1f69fdd2-600a-4cfc-a9ba-16995df0d77d:mydatabase |
14 changes: 0 additions & 14 deletions
14
examples/resources/cockroach_dedicated_cluster/resource.tf
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.