mirror of
https://github.com/opentofu/opentofu.git
synced 2025-01-26 08:26:26 -06:00
provider/aws: Make encryption in Aurora instances computed-only
This commit is contained in:
parent
a8a1f6d166
commit
de03308b73
@ -85,16 +85,12 @@ func resourceAwsRDSClusterInstance() *schema.Resource {
|
|||||||
|
|
||||||
"kms_key_id": &schema.Schema{
|
"kms_key_id": &schema.Schema{
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Optional: true,
|
|
||||||
Computed: true,
|
Computed: true,
|
||||||
ForceNew: true,
|
|
||||||
},
|
},
|
||||||
|
|
||||||
"storage_encrypted": &schema.Schema{
|
"storage_encrypted": &schema.Schema{
|
||||||
Type: schema.TypeBool,
|
Type: schema.TypeBool,
|
||||||
Optional: true,
|
Computed: true,
|
||||||
Default: false,
|
|
||||||
ForceNew: true,
|
|
||||||
},
|
},
|
||||||
|
|
||||||
"monitoring_role_arn": &schema.Schema{
|
"monitoring_role_arn": &schema.Schema{
|
||||||
@ -233,6 +229,7 @@ func resourceAwsRDSClusterInstanceRead(d *schema.ResourceData, meta interface{})
|
|||||||
d.Set("instance_class", db.DBInstanceClass)
|
d.Set("instance_class", db.DBInstanceClass)
|
||||||
d.Set("identifier", db.DBInstanceIdentifier)
|
d.Set("identifier", db.DBInstanceIdentifier)
|
||||||
d.Set("storage_encrypted", db.StorageEncrypted)
|
d.Set("storage_encrypted", db.StorageEncrypted)
|
||||||
|
d.Set("kms_key_id", db.KmsKeyId)
|
||||||
d.Set("promotion_tier", db.PromotionTier)
|
d.Set("promotion_tier", db.PromotionTier)
|
||||||
|
|
||||||
if db.MonitoringInterval != nil {
|
if db.MonitoringInterval != nil {
|
||||||
|
@ -281,8 +281,6 @@ resource "aws_rds_cluster_instance" "cluster_instances" {
|
|||||||
cluster_identifier = "${aws_rds_cluster.default.id}"
|
cluster_identifier = "${aws_rds_cluster.default.id}"
|
||||||
instance_class = "db.r3.large"
|
instance_class = "db.r3.large"
|
||||||
db_parameter_group_name = "${aws_db_parameter_group.bar.name}"
|
db_parameter_group_name = "${aws_db_parameter_group.bar.name}"
|
||||||
storage_encrypted = true
|
|
||||||
kms_key_id = "${aws_kms_key.foo.arn}"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "aws_db_parameter_group" "bar" {
|
resource "aws_db_parameter_group" "bar" {
|
||||||
|
Loading…
Reference in New Issue
Block a user