From eb314ee520806c60c8363c723bde74fa2a79750f Mon Sep 17 00:00:00 2001 From: Paul Stack Date: Thu, 21 Jul 2016 20:16:13 +0100 Subject: [PATCH] provider/aws: Set `storage_encrypted` to state in (#7751) `aws_rds_cluster_instance` The Import test showed that there was no setting of the `storage_encrypted` value back to state on the Read func. ``` % make testacc TEST=./builtin/providers/aws TESTARGS='-run=TestAccAWSRDSClusterInstance_importBasic' ==> Checking that code complies with gofmt requirements... go generate $(go list ./... | grep -v /terraform/vendor/) TF_ACC=1 go test ./builtin/providers/aws -v -run=TestAccAWSRDSClusterInstance_importBasic -timeout 120m === RUN TestAccAWSRDSClusterInstance_importBasic --- PASS: TestAccAWSRDSClusterInstance_importBasic (754.30s) PASS ok github.com/hashicorp/terraform/builtin/providers/aws 754.411s ``` --- builtin/providers/aws/resource_aws_rds_cluster_instance.go | 1 + 1 file changed, 1 insertion(+) diff --git a/builtin/providers/aws/resource_aws_rds_cluster_instance.go b/builtin/providers/aws/resource_aws_rds_cluster_instance.go index 795665685..745674c43 100644 --- a/builtin/providers/aws/resource_aws_rds_cluster_instance.go +++ b/builtin/providers/aws/resource_aws_rds_cluster_instance.go @@ -205,6 +205,7 @@ func resourceAwsRDSClusterInstanceRead(d *schema.ResourceData, meta interface{}) d.Set("cluster_identifier", db.DBClusterIdentifier) d.Set("instance_class", db.DBInstanceClass) d.Set("identifier", db.DBInstanceIdentifier) + d.Set("storage_encrypted", db.StorageEncrypted) if len(db.DBParameterGroups) > 0 { d.Set("db_parameter_group_name", db.DBParameterGroups[0].DBParameterGroupName)