Skip to content

Commit 675f40b

Browse files
ssm-parameters: support tiers (#705)
Co-authored-by: cloudpossebot <[email protected]>
1 parent 73d6f51 commit 675f40b

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

modules/ssm-parameters/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ components:
3030
3131
| Name | Version |
3232
|------|---------|
33-
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.2.5 |
33+
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.3.0 |
3434
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 4.0 |
3535
| <a name="requirement_sops"></a> [sops](#requirement\_sops) | >= 0.5, < 1.0 |
3636
@@ -76,7 +76,7 @@ components:
7676
| <a name="input_labels_as_tags"></a> [labels\_as\_tags](#input\_labels\_as\_tags) | Set of labels (ID elements) to include as tags in the `tags` output.<br>Default is to include all labels.<br>Tags with empty values will not be included in the `tags` output.<br>Set to `[]` to suppress all generated tags.<br>**Notes:**<br> The value of the `name` tag, if included, will be the `id`, not the `name`.<br> Unlike other `null-label` inputs, the initial setting of `labels_as_tags` cannot be<br> changed in later chained modules. Attempts to change it will be silently ignored. | `set(string)` | <pre>[<br> "default"<br>]</pre> | no |
7777
| <a name="input_name"></a> [name](#input\_name) | ID element. Usually the component or solution name, e.g. 'app' or 'jenkins'.<br>This is the only ID element not also included as a `tag`.<br>The "name" tag is set to the full `id` string. There is no tag with the value of the `name` input. | `string` | `null` | no |
7878
| <a name="input_namespace"></a> [namespace](#input\_namespace) | ID element. Usually an abbreviation of your organization name, e.g. 'eg' or 'cp', to help ensure generated IDs are globally unique | `string` | `null` | no |
79-
| <a name="input_params"></a> [params](#input\_params) | n/a | <pre>map(object({<br> value = string<br> description = string<br> overwrite = bool<br> type = string<br> }))</pre> | n/a | yes |
79+
| <a name="input_params"></a> [params](#input\_params) | A map of parameter values to write to SSM Parameter Store | <pre>map(object({<br> value = string<br> description = string<br> overwrite = optional(bool, false)<br> tier = optional(string, "Standard")<br> type = string<br> }))</pre> | n/a | yes |
8080
| <a name="input_regex_replace_chars"></a> [regex\_replace\_chars](#input\_regex\_replace\_chars) | Terraform regular expression (regex) string.<br>Characters matching the regex will be removed from the ID elements.<br>If not set, `"/[^a-zA-Z0-9-]/"` is used to remove all characters other than hyphens, letters and digits. | `string` | `null` | no |
8181
| <a name="input_region"></a> [region](#input\_region) | AWS Region | `string` | n/a | yes |
8282
| <a name="input_sops_source_file"></a> [sops\_source\_file](#input\_sops\_source\_file) | The relative path to the SOPS file which is consumed as the source for creating parameter resources. | `string` | n/a | yes |

modules/ssm-parameters/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ resource "aws_ssm_parameter" "destination" {
2626

2727
name = each.key
2828
description = each.value.description
29+
tier = each.value.tier
2930
type = each.value.type
3031
key_id = var.kms_arn
3132
value = each.value.value

modules/ssm-parameters/variables.tf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ variable "params" {
2323
type = map(object({
2424
value = string
2525
description = string
26-
overwrite = bool
26+
overwrite = optional(bool, false)
27+
tier = optional(string, "Standard")
2728
type = string
2829
}))
30+
description = "A map of parameter values to write to SSM Parameter Store"
2931
}

modules/ssm-parameters/versions.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
terraform {
2-
required_version = ">= 1.2.5"
2+
required_version = ">= 1.3.0"
33

44
required_providers {
55
aws = {

0 commit comments

Comments
 (0)