Skip to content

scaleway-terraform-modules/terraform-scaleway-sdb

Terraform / Scaleway

Purpose

This repository is used to manage Serverless Databases on scaleway using terraform.

Usage

module "sdb" {
  source  = "scaleway-terraform-modules/sdb/scaleway"

  # insert required variables here
}

Requirements

Name Version
terraform >= 0.13
scaleway >= 2.43.0
time 0.12.0

Resources

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

Inputs

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

Outputs

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.

Authors

Module is maintained with help from the community.

License

Mozilla Public License 2.0 Licensed. See LICENSE for full details.