From 8aadf1d56d2cbc79f0a60255e7acce7f832474c2 Mon Sep 17 00:00:00 2001 From: Brandon Siegel Date: Tue, 8 Mar 2016 16:48:04 -0500 Subject: [PATCH] Add storage_encrypted as an optional parameter to aws_rds_cluster --- builtin/providers/aws/resource_aws_rds_cluster.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/builtin/providers/aws/resource_aws_rds_cluster.go b/builtin/providers/aws/resource_aws_rds_cluster.go index 45f3531e2..482da052f 100644 --- a/builtin/providers/aws/resource_aws_rds_cluster.go +++ b/builtin/providers/aws/resource_aws_rds_cluster.go @@ -71,6 +71,12 @@ func resourceAwsRDSCluster() *schema.Resource { Computed: true, }, + "storage_encrypted": &schema.Schema{ + Type: schema.TypeBool, + Optional: true, + ForceNew: true, + }, + "final_snapshot_identifier": &schema.Schema{ Type: schema.TypeString, Optional: true, @@ -167,6 +173,7 @@ func resourceAwsRDSClusterCreate(d *schema.ResourceData, meta interface{}) error Engine: aws.String("aurora"), MasterUserPassword: aws.String(d.Get("master_password").(string)), MasterUsername: aws.String(d.Get("master_username").(string)), + StorageEncrypted: aws.Bool(d.Get("storage_encrypted").(bool)), } if v := d.Get("database_name"); v.(string) != "" { @@ -276,6 +283,7 @@ func resourceAwsRDSClusterRead(d *schema.ResourceData, meta interface{}) error { d.Set("engine", dbc.Engine) d.Set("master_username", dbc.MasterUsername) d.Set("port", dbc.Port) + d.Set("storage_encrypted", dbc.StorageEncrypted) d.Set("backup_retention_period", dbc.BackupRetentionPeriod) d.Set("preferred_backup_window", dbc.PreferredBackupWindow) d.Set("preferred_maintenance_window", dbc.PreferredMaintenanceWindow)