Skip to content

Commit

Permalink
[doc]: update rds_instance's doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Ccaswell42 committed Dec 5, 2023
1 parent 757b185 commit f4d9e88
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions docs/resources/rds_instance.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,55 @@ resource "sbercloud_rds_instance" "instance" {
}
```

### create db instance with customized parameters

```hcl
variable "vpc_id" {}
variable "subnet_id" {}
variable "secgroup_id" {}
variable "availability_zone" {}
resource "sbercloud_rds_instance" "instance" {
name = "terraform_test_rds_instance"
flavor = "rds.pg.n1.large.2"
vpc_id = var.vpc_id
subnet_id = var.subnet_id
security_group_id = var.secgroup_id
availability_zone = [var.availability_zone]
db {
type = "PostgreSQL"
version = "12"
password = "Huangwei!120521"
}
volume {
type = "ULTRAHIGH"
size = 100
}
backup_strategy {
start_time = "08:00-09:00"
keep_days = 1
}
parameters {
name = "authentication_timeout"
value = "50"
}
parameters {
name = "commit_delay"
value = "10"
}
parameters {
name = "log_rotation_age"
value = "70"
}
}
```

## Argument Reference

The following arguments are supported:
Expand Down

0 comments on commit f4d9e88

Please sign in to comment.