Store aws_db_instance.password in tfstate, change to AttrTypeCreate

This commit is contained in:
Alek Storm 2014-09-18 13:21:08 -07:00
parent ac2aed856e
commit c7f219a781
2 changed files with 3 additions and 5 deletions

View File

@ -100,9 +100,6 @@ func resource_aws_db_instance_create(
opts.EngineVersion = rs.Attributes["engine_version"]
opts.Engine = rs.Attributes["engine"]
// Don't keep the password around in the state
delete(rs.Attributes, "password")
log.Printf("[DEBUG] DB Instance create configuration: %#v", opts)
_, err = conn.CreateDBInstance(&opts)
if err != nil {
@ -221,7 +218,7 @@ func resource_aws_db_instance_diff(
"maintenance_window": diff.AttrTypeCreate,
"multi_az": diff.AttrTypeCreate,
"name": diff.AttrTypeCreate,
"password": diff.AttrTypeUpdate,
"password": diff.AttrTypeCreate,
"port": diff.AttrTypeCreate,
"publicly_accessible": diff.AttrTypeCreate,
"username": diff.AttrTypeCreate,

View File

@ -35,7 +35,8 @@ The following arguments are supported:
* `instance_class` - (Required) The instance type of the RDS instance.
* `final_snapshot_identifier` - (Optional) The name of your final DB snapshot.
* `name` - (Required) The DB name to create.
* `password` - (Required) Password for the master DB user.
* `password` - (Required) Password for the master DB user. Note that this will be stored
in the state file.
* `username` - (Required) Username for the master DB user.
* `availability_zone` - (Optional) The AZ for the RDS instance.
* `backup_retention_period` - (Optional) The days to retain backups for.