Skip to content

Commit 3c97405

Browse files
fix: Update Certificate & Remove Storage type (#15)
* fix: use newer certifcate * fix: remove storage_type * terraform-docs: automated action --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent f2d24ff commit 3c97405

File tree

7 files changed

+4
-36
lines changed

7 files changed

+4
-36
lines changed

README.md

-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ such as extended backups, user management, and autoscaling.
8686
| <a name="input_port"></a> [port](#input\_port) | The port on which the DB accepts connections. | `number` | `3306` | no |
8787
| <a name="input_preferred_backup_window"></a> [preferred\_backup\_window](#input\_preferred\_backup\_window) | The daily time range (in UTC) during which automated backups are created if they are enabled. | `string` | `"00:00-02:30"` | no |
8888
| <a name="input_preferred_maintenance_window"></a> [preferred\_maintenance\_window](#input\_preferred\_maintenance\_window) | The weekly time range during which system maintenance can occur, in (UTC). | `string` | `"Mon:03:00-Mon:04:30"` | no |
89-
| <a name="input_storage_type"></a> [storage\_type](#input\_storage\_type) | Storage type. | `string` | `"aurora"` | no |
9089
| <a name="input_tags"></a> [tags](#input\_tags) | Tags to add to the AWS RDS Cluster Instance. | `map(any)` | `{}` | no |
9190
| <a name="input_vpc_security_group_ids_rds_cluster"></a> [vpc\_security\_group\_ids\_rds\_cluster](#input\_vpc\_security\_group\_ids\_rds\_cluster) | List of VPC security groups to associate with the RDS Proxy. | `list(string)` | `null` | no |
9291
| <a name="input_vpc_security_group_ids_rds_proxy"></a> [vpc\_security\_group\_ids\_rds\_proxy](#input\_vpc\_security\_group\_ids\_rds\_proxy) | List of VPC security groups to associate with the RDS Proxy. | `list(string)` | `null` | no |

modules/rds_cluster/README.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
| <a name="input_skip_final_snapshot"></a> [skip\_final\_snapshot](#input\_skip\_final\_snapshot) | Determines whether a final DB snapshot is created before the DB cluster is deleted. | `bool` | `false` | no |
3535
| <a name="input_source_region"></a> [source\_region](#input\_source\_region) | The source region for an encrypted replica DB cluster. | `string` | `null` | no |
3636
| <a name="input_storage_encrypted"></a> [storage\_encrypted](#input\_storage\_encrypted) | Specifies whether the DB cluster is encrypted. | `bool` | `true` | no |
37-
| <a name="input_storage_type"></a> [storage\_type](#input\_storage\_type) | Specifies the storage type to be associated with the DB cluster. | `string` | `null` | no |
3837
| <a name="input_tags"></a> [tags](#input\_tags) | Tags to add to the AWS RDS Cluster. | `map(any)` | `{}` | no |
3938
| <a name="input_vpc_security_group_ids"></a> [vpc\_security\_group\_ids](#input\_vpc\_security\_group\_ids) | List of VPC security groups to associate with the Cluster | `list(string)` | `null` | no |
4039

@@ -56,7 +55,7 @@
5655
## Resources
5756

5857
- resource.aws_rds_cluster.main (modules/rds_cluster/main.tf#5)
59-
- resource.random_password.master_password (modules/rds_cluster/main.tf#113)
60-
- resource.random_string.master_username (modules/rds_cluster/main.tf#107)
58+
- resource.random_password.master_password (modules/rds_cluster/main.tf#112)
59+
- resource.random_string.master_username (modules/rds_cluster/main.tf#106)
6160
- data source.aws_availability_zones.available (modules/rds_cluster/main.tf#1)
6261
<!-- END_TF_DOCS -->

modules/rds_cluster/main.tf

-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ resource "aws_rds_cluster" "main" {
1818
iops = var.iops
1919
kms_key_id = module.kms.key_arn
2020
storage_encrypted = var.storage_encrypted
21-
storage_type = var.storage_type
2221

2322
# Database name
2423
database_name = var.database_name

modules/rds_cluster/variables.tf

-6
Original file line numberDiff line numberDiff line change
@@ -176,12 +176,6 @@ variable "storage_encrypted" {
176176
type = bool
177177
}
178178

179-
variable "storage_type" {
180-
default = null
181-
description = "Specifies the storage type to be associated with the DB cluster."
182-
type = string
183-
}
184-
185179
variable "vpc_security_group_ids" {
186180
default = null
187181
description = "List of VPC security groups to associate with the Cluster"

modules/rds_cluster_instance/README.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
|------|-------------|------|---------|:--------:|
88
| <a name="input_apply_immediately"></a> [apply\_immediately](#input\_apply\_immediately) | Specifies whether any database modifications are applied immediately, or during the next maintenance window. | `bool` | `true` | no |
99
| <a name="input_auto_minor_version_upgrade"></a> [auto\_minor\_version\_upgrade](#input\_auto\_minor\_version\_upgrade) | Indicates that minor engine upgrades will be applied automatically to the DB instance during the maintenance window. | `bool` | `false` | no |
10-
| <a name="input_ca_cert_identifier"></a> [ca\_cert\_identifier](#input\_ca\_cert\_identifier) | The identifier of the CA certificate for the DB instance. | `string` | `"rds-ca-2019"` | no |
10+
| <a name="input_ca_cert_identifier"></a> [ca\_cert\_identifier](#input\_ca\_cert\_identifier) | The identifier of the CA certificate for the DB instance. | `string` | `"rds-ca-rsa2048-g1"` | no |
1111
| <a name="input_cluster_identifier"></a> [cluster\_identifier](#input\_cluster\_identifier) | The cluster identifier. | `string` | n/a | yes |
1212
| <a name="input_copy_tags_to_snapshot"></a> [copy\_tags\_to\_snapshot](#input\_copy\_tags\_to\_snapshot) | Copy all Cluster tags to snapshots. | `bool` | `true` | no |
1313
| <a name="input_db_subnet_group_name"></a> [db\_subnet\_group\_name](#input\_db\_subnet\_group\_name) | A DB subnet group to associate with this DB instance. | `string` | n/a | yes |
@@ -19,7 +19,6 @@
1919
| <a name="input_performance_insights_enabled"></a> [performance\_insights\_enabled](#input\_performance\_insights\_enabled) | Specifies whether Performance Insights is enabled or not. | `bool` | `true` | no |
2020
| <a name="input_performance_insights_retention_period"></a> [performance\_insights\_retention\_period](#input\_performance\_insights\_retention\_period) | Amount of time in days to retain Performance Insights data. | `number` | `7` | no |
2121
| <a name="input_publicly_accessible"></a> [publicly\_accessible](#input\_publicly\_accessible) | Bool to control if instance is publicly accessible. | `bool` | `false` | no |
22-
| <a name="input_storage_type"></a> [storage\_type](#input\_storage\_type) | Storage type. | `string` | `"aurora"` | no |
2322
| <a name="input_tags"></a> [tags](#input\_tags) | Tags to add to the AWS Customer Managed Key. | `map(any)` | `{}` | no |
2423

2524
## Outputs

modules/rds_cluster_instance/variables.tf

+1-12
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ variable "apply_immediately" {
1919
}
2020

2121
variable "ca_cert_identifier" {
22-
default = "rds-ca-2019"
22+
default = "rds-ca-rsa2048-g1"
2323
description = "The identifier of the CA certificate for the DB instance."
2424
type = string
2525
}
@@ -85,14 +85,3 @@ variable "publicly_accessible" {
8585
description = "Bool to control if instance is publicly accessible."
8686
type = bool
8787
}
88-
89-
variable "storage_type" {
90-
default = "aurora"
91-
description = "Storage type."
92-
type = string
93-
94-
validation {
95-
condition = contains(["aurora"], var.storage_type)
96-
error_message = "Value must be `aurora`."
97-
}
98-
}

variables.tf

-11
Original file line numberDiff line numberDiff line change
@@ -193,17 +193,6 @@ variable "port" {
193193
type = number
194194
}
195195

196-
variable "storage_type" {
197-
default = "aurora"
198-
description = "Storage type."
199-
type = string
200-
201-
validation {
202-
condition = contains(["aurora"], var.storage_type)
203-
error_message = "Value must be `aurora`."
204-
}
205-
}
206-
207196
variable "vpc_security_group_ids_rds_cluster" {
208197
default = null
209198
description = "List of VPC security groups to associate with the RDS Proxy."

0 commit comments

Comments
 (0)