mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
Merge pull request #309 from alekstorm/aws-db-instance-password
Store aws_db_instance.password in tfstate, change to AttrTypeCreate
This commit is contained in:
commit
6ddcc2ebf8
@ -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 {
|
||||
@ -223,7 +220,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,
|
||||
|
@ -36,7 +36,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.
|
||||
|
Loading…
Reference in New Issue
Block a user