Skip to content

Commit 6fc2bac

Browse files
gmeligiogberenice
andauthored
fix: upgrade aws provider to 5.29.0 to support storage_type (#103)
* build: upgrade aws provider to 5.29.0 * Update examples/complete/variables.tf Co-authored-by: Veronika Gnilitska <30597968+gberenice@users.noreply.github.com> --------- Co-authored-by: Veronika Gnilitska <30597968+gberenice@users.noreply.github.com>
1 parent 19f58f4 commit 6fc2bac

File tree

6 files changed

+19
-5
lines changed

6 files changed

+19
-5
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,15 +102,15 @@ Available targets:
102102
| Name | Version |
103103
|------|---------|
104104
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.3 |
105-
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 5.21.0 |
105+
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 5.29.0 |
106106
| <a name="requirement_local"></a> [local](#requirement\_local) | >= 1.3 |
107107
| <a name="requirement_random"></a> [random](#requirement\_random) | >= 1.0 |
108108

109109
## Providers
110110

111111
| Name | Version |
112112
|------|---------|
113-
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 5.21.0 |
113+
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 5.29.0 |
114114
| <a name="provider_random"></a> [random](#provider\_random) | >= 1.0 |
115115

116116
## Modules

docs/terraform.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
| Name | Version |
55
|------|---------|
66
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.3 |
7-
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 5.21.0 |
7+
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 5.29.0 |
88
| <a name="requirement_local"></a> [local](#requirement\_local) | >= 1.3 |
99
| <a name="requirement_random"></a> [random](#requirement\_random) | >= 1.0 |
1010

1111
## Providers
1212

1313
| Name | Version |
1414
|------|---------|
15-
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 5.21.0 |
15+
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 5.29.0 |
1616
| <a name="provider_random"></a> [random](#provider\_random) | >= 1.0 |
1717

1818
## Modules

examples/complete/fixtures.us-east-2.tfvars

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ engine = "docdb"
3131

3232
storage_encrypted = true
3333

34+
storage_type = "standard"
35+
3436
skip_final_snapshot = true
3537

3638
apply_immediately = true

examples/complete/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ module "documentdb_cluster" {
6060
engine = var.engine
6161
engine_version = var.engine_version
6262
storage_encrypted = var.storage_encrypted
63+
storage_type = var.storage_type
6364
kms_key_id = var.kms_key_id
6465
skip_final_snapshot = var.skip_final_snapshot
6566
enabled_cloudwatch_logs_exports = var.enabled_cloudwatch_logs_exports

examples/complete/variables.tf

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,17 @@ variable "storage_encrypted" {
119119
default = true
120120
}
121121

122+
variable "storage_type" {
123+
type = string
124+
description = "The storage type to associate with the DB cluster. Valid values: standard, iopt1"
125+
default = "standard"
126+
127+
validation {
128+
condition = contains(["standard", "iopt1"], var.storage_type)
129+
error_message = "Error: storage_type value must be one of two options - 'standard' or 'iopt1'."
130+
}
131+
}
132+
122133
variable "kms_key_id" {
123134
type = string
124135
description = "The ARN for the KMS encryption key. When specifying `kms_key_id`, `storage_encrypted` needs to be set to `true`"

versions.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ terraform {
44
required_providers {
55
aws = {
66
source = "hashicorp/aws"
7-
version = ">= 5.21.0"
7+
version = ">= 5.29.0"
88
}
99
local = {
1010
source = "hashicorp/local"

0 commit comments

Comments
 (0)