Skip to content

Commit

Permalink
Fix typos in 2.2.5 docs (#324)
Browse files Browse the repository at this point in the history
  • Loading branch information
emerkle826 authored Nov 9, 2023
1 parent c78ea52 commit 4d0d598
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docs/resources/database.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ resource "random_pet" "pet_name" {}
resource "astra_database" "example_db" {
# Required
name = substr("my-database-${random_pet.pet_name.id}", 0, 50)
keyspace = "example_keyspace" # 48 characters max
keyspace = "example_keyspace" # optional, 48 characters max
cloud_provider = "gcp"
regions = ["us-central1"]
Expand Down Expand Up @@ -71,7 +71,7 @@ output "cqlsh_url" {

- `db_type` (String) Database type. Currently only `vector` is supported. Omit this optional field if you want a regular severless database.
- `deletion_protection` (Boolean) Whether or not to allow Terraform to destroy the instance. Unless this field is set to false in Terraform state, a `terraform destroy` or `terraform apply` command that deletes the instance will fail. Defaults to `true`.
- `keyspace` (String) Initial keyspace name. For additional keyspaces, use the astra_keyspace resource. If omitted, Astra will use its default, currently 'default_keysapce'
- `keyspace` (String) Initial keyspace name. For additional keyspaces, use the astra_keyspace resource. If omitted, Astra will use its default, currently `default_keyspace`
- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts))

### Read-Only
Expand Down
2 changes: 1 addition & 1 deletion examples/resources/astra_database/resource.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ resource "random_pet" "pet_name" {}
resource "astra_database" "example_db" {
# Required
name = substr("my-database-${random_pet.pet_name.id}", 0, 50)
keyspace = "example_keyspace" # 48 characters max
keyspace = "example_keyspace" # optional, 48 characters max
cloud_provider = "gcp"
regions = ["us-central1"]

Expand Down
4 changes: 2 additions & 2 deletions internal/provider/resource_database.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func resourceDatabase() *schema.Resource {
Type: schema.TypeString,
Required: true,
ForceNew: true,
ValidateFunc: validation.StringMatch(regexp.MustCompile("^.{2,}"), "name must be atleast 2 characters"),
ValidateFunc: validation.StringMatch(regexp.MustCompile("^.{2,}"), "name must be at least 2 characters"),
},
"cloud_provider": {
Description: "The cloud provider to launch the database. (Currently supported: aws, azure, gcp)",
Expand All @@ -78,7 +78,7 @@ func resourceDatabase() *schema.Resource {
},
// Optional
"keyspace": {
Description: "Initial keyspace name. For additional keyspaces, use the astra_keyspace resource. If omitted, Astra will use its default, currently 'default_keysapce'",
Description: "Initial keyspace name. For additional keyspaces, use the astra_keyspace resource. If omitted, Astra will use its default, currently `default_keyspace`",
Type: schema.TypeString,
Optional: true,
ForceNew: true,
Expand Down

0 comments on commit 4d0d598

Please sign in to comment.