如何在RDS维护窗口更改ebs类型

问题描述 投票:0回答:0

目前我有一个从 terraform 创建的 RDS 实例配置,我想在 rds 维护窗口中更改 ebs 类型但窗口中没有自动更改,我不明白这是为什么,这是当前的 terraform 代码:

resource "aws_db_instance" "oracle_instance_es" {  
identifier_prefix                = "${var.stack_id}-oracle-db"  
allocated_storage                = 100 
allow_major_version_upgrade      = true  
apply_immediately                = false  
auto_minor_version_upgrade       = true  
parameter_group_name             = aws_db_parameter_group.rds_oracle.name 
availability_zone                = "${var.aws_region}" 
engine                           = "oracle-se2"  
instance_class                   = "db.m5.xlarge" 
license_model                    = "license-included" 
character_set_name               = "WE8MSWIN1252"  
nchar_character_set_name         = "AL16UTF16" 
name                             = upper(data.aws_ssm_parameter.sid_oracle.value)  
username                         = data.aws_ssm_parameter.user_oracle_db.value 
password                         = data.aws_ssm_parameter.password_oracle_db.value  
db_subnet_group_name             = local.new_db_subnet 
port                             = data.aws_ssm_parameter.port_oracle.value  
vpc_security_group_ids           = [local.new_sg_database_id] 
storage_type                     = "io1"  
iops                             = 2000 
multi_az                         = false 
backup_retention_period          = 18 
skip_final_snapshot              = true 
deletion_protection              = true  
delete_automated_backups         = false  
monitoring_role_arn              = aws_iam_role.rds_monitoring_enhanced_role.arn  
monitoring_interval              = 30  
max_allocated_storage            = 350  
performance_insights_enabled     = true  
performance_insights_kms_key_id  = data.aws_kms_key.kms_params_cypher.arn  
enabled_cloudwatch_logs_exports  = ["alert", "audit", "listener", "trace"]  
maintenance_window               = "fri:00:00-fri:02:00"  
backup_window                    = "07:15-08:00"  
tags                             = {local.common_tags}

在代码的前面,我有以下两个不同的标志,这就是它目前在 aws 中的样子:

storage_type                     = "gp3"  
iops                             = 12000 

AWS不改EBS的原因是什么?我遗漏了什么

我正在测试这些更改,因为我需要以不影响我的方式更改此磁盘,或者对我的数据库可用性影响很小,因为当直接更改它时,数据库会停止并重新启动,这让我无法等待很久 ;或者在不影响数据库可用性的情况下进行这些 EBS 更改的最佳选择是什么?

amazon-web-services oracle terraform amazon-rds
© www.soinside.com 2019 - 2024. All rights reserved.