This repository is used to manage Serverless Databases on scaleway using terraform.
- Setup the scaleway provider in your tf file.
- Include this module in your tf file. Refer to documentation.
module "sdb" {
source = "scaleway-terraform-modules/sdb/scaleway"
# insert required variables here
}| Name | Version |
|---|---|
| terraform | >= 0.13 |
| scaleway | >= 2.43.0 |
| time | 0.13.1 |
| Name | Type |
|---|---|
| scaleway_iam_api_key.admin | resource |
| scaleway_iam_api_key.ro | resource |
| scaleway_iam_api_key.rw | resource |
| scaleway_iam_application.admin | resource |
| scaleway_iam_application.ro | resource |
| scaleway_iam_application.rw | resource |
| scaleway_iam_policy.admin | resource |
| scaleway_iam_policy.ro | resource |
| scaleway_iam_policy.rw | resource |
| scaleway_sdb_sql_database.main | resource |
| time_rotating.keys_ttl | resource |
| scaleway_account_project.current | data source |
| Name | Description | Type | Default | Required |
|---|---|---|---|---|
| name | Name of the database. | string |
n/a | yes |
| keys_ttl | TTL of IAM keys in days. | number |
0 |
no |
| max_cpu | Maximum number of CPU units for your database. | number |
15 |
no |
| min_cpu | Minimum number of CPU units for your database. | number |
0 |
no |
| region | Region in which the resource exists. | string |
null |
no |
| Name | Description |
|---|---|
| admin_connection_string | Connection string to connect with admin permissions. |
| endpoint | Endpoint of the database. |
| ro_connection_string | Connection string to connect with read only permissions. |
| rw_connection_string | Connection string to connect with read/write permissions. |
Module is maintained with help from the community.
Mozilla Public License 2.0 Licensed. See LICENSE for full details.