From c6e68fe1d3e07f92e8c65ef0b468c98191d8ac28 Mon Sep 17 00:00:00 2001 From: Martin Zichacek Date: Fri, 15 Mar 2024 12:45:42 +0100 Subject: [PATCH] Update variables.tf (#51) * Update variables.tf Specified value type of variable api_integration * Update variables.tf Updated value also in the root module variables.tf for consistency * Updated documentation --- README.md | 2 +- docs/terraform.md | 2 +- modules/api_integration/variables.tf | 1 + variables.tf | 1 + 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 509ecb4..606e697 100644 --- a/README.md +++ b/README.md @@ -166,7 +166,7 @@ No resources. |------|-------------|------|---------|:--------:| | [additional\_tag\_map](#input\_additional\_tag\_map) | Additional key-value pairs to add to each map in `tags_as_list_of_maps`. Not added to `tags` or `id`.
This is for some rare cases where resources want additional configuration of tags
and therefore take a list of maps with tag key, value, and additional configuration. | `map(string)` | `{}` | no | | [alert\_policy](#input\_alert\_policy) | Opsgenie Alert Policy configuration | `map` | `{}` | no | -| [api\_integration](#input\_api\_integration) | Opsgenie API Integration configuration | `map` | `{}` | no | +| [api\_integration](#input\_api\_integration) | Opsgenie API Integration configuration | `map(any)` | `{}` | no | | [attributes](#input\_attributes) | ID element. Additional attributes (e.g. `workers` or `cluster`) to add to `id`,
in the order they appear in the list. New attributes are appended to the
end of the list. The elements of the list are joined by the `delimiter`
and treated as a single ID element. | `list(string)` | `[]` | 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 | | [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/docs/terraform.md b/docs/terraform.md index f27f714..7f2a5cd 100644 --- a/docs/terraform.md +++ b/docs/terraform.md @@ -36,7 +36,7 @@ No resources. |------|-------------|------|---------|:--------:| | [additional\_tag\_map](#input\_additional\_tag\_map) | Additional key-value pairs to add to each map in `tags_as_list_of_maps`. Not added to `tags` or `id`.
This is for some rare cases where resources want additional configuration of tags
and therefore take a list of maps with tag key, value, and additional configuration. | `map(string)` | `{}` | no | | [alert\_policy](#input\_alert\_policy) | Opsgenie Alert Policy configuration | `map` | `{}` | no | -| [api\_integration](#input\_api\_integration) | Opsgenie API Integration configuration | `map` | `{}` | no | +| [api\_integration](#input\_api\_integration) | Opsgenie API Integration configuration | `map(any)` | `{}` | no | | [attributes](#input\_attributes) | ID element. Additional attributes (e.g. `workers` or `cluster`) to add to `id`,
in the order they appear in the list. New attributes are appended to the
end of the list. The elements of the list are joined by the `delimiter`
and treated as a single ID element. | `list(string)` | `[]` | 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 | | [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/modules/api_integration/variables.tf b/modules/api_integration/variables.tf index f293ca5..1b40724 100644 --- a/modules/api_integration/variables.tf +++ b/modules/api_integration/variables.tf @@ -1,4 +1,5 @@ variable "api_integration" { + type = map(any) default = {} description = "Opsgenie API Integration configuration" } diff --git a/variables.tf b/variables.tf index 9ad736a..0b8d6ce 100644 --- a/variables.tf +++ b/variables.tf @@ -10,6 +10,7 @@ variable "alert_policy" { } variable "api_integration" { + type = map(any) default = {} description = "Opsgenie API Integration configuration" }