Add storage_encrypted as an optional parameter to aws_rds_cluster
This commit is contained in:
parent
5d9637ab1a
commit
8aadf1d56d
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue