diff --git a/README.md b/README.md index 71e6621..9e3ff6e 100644 --- a/README.md +++ b/README.md @@ -88,7 +88,7 @@ For more information, refer to [variables.tf](variables.tf), list of inputs belo | [comment](#input\_comment) | Specifies a comment for the stage | `string` | `null` | no | | [context](#input\_context) | Single object for setting entire context at once.
See description of individual variables for details.
Leave string and numeric variables as `null` to use default value.
Individual variable settings (non-null) override settings in context object,
except for attributes, tags, and additional\_tag\_map, which are merged. | `any` |
{
"additional_tag_map": {},
"attributes": [],
"delimiter": null,
"descriptor_formats": {},
"enabled": true,
"environment": null,
"id_length_limit": null,
"label_key_case": null,
"label_order": [],
"label_value_case": null,
"labels_as_tags": [
"unset"
],
"name": null,
"namespace": null,
"regex_replace_chars": null,
"stage": null,
"tags": {},
"tenant": null
}
| no | | [copy\_options](#input\_copy\_options) | Specifies the copy options for the stage | `string` | `null` | no | -| [create\_default\_database\_roles](#input\_create\_default\_database\_roles) | Whether the default database roles should be created | `bool` | `false` | no | +| [create\_default\_roles](#input\_create\_default\_roles) | Whether the default database roles should be created | `bool` | `false` | no | | [credentials](#input\_credentials) | Specifies the credentials for the stage | `string` | `null` | no | | [database](#input\_database) | The database in which to create the stage | `string` | n/a | yes | | [delimiter](#input\_delimiter) | Delimiter to be used between ID elements.
Defaults to `-` (hyphen). Set to `""` to use no delimiter at all. | `string` | `null` | no | diff --git a/examples/complete/main.tf b/examples/complete/main.tf index 19af777..3b31688 100644 --- a/examples/complete/main.tf +++ b/examples/complete/main.tf @@ -36,7 +36,7 @@ module "internal_stage" { comment = "This is my ingest stage" - create_default_database_roles = true + create_default_roles = true roles = { readonly = { # Modifies readonly default database role diff --git a/locals.tf b/locals.tf index eaf792a..3f2948d 100644 --- a/locals.tf +++ b/locals.tf @@ -9,7 +9,7 @@ locals { is_internal = var.url == null - default_roles_definition = var.create_default_database_roles ? { + default_roles_definition = var.create_default_roles ? { readonly = { enabled = true stage_grants = local.is_internal ? ["READ"] : ["USAGE"] diff --git a/variables.tf b/variables.tf index 964e76d..237bd97 100644 --- a/variables.tf +++ b/variables.tf @@ -74,7 +74,7 @@ variable "url" { default = null } -variable "create_default_database_roles" { +variable "create_default_roles" { description = "Whether the default database roles should be created" type = bool default = false