Merge pull request #3744 from stack72/f-aws-db-instance
provider/aws: Changing the db_instance resource to mark the engine_version as Optional
This commit is contained in:
commit
51fd5fafef
|
@ -54,7 +54,8 @@ func resourceAwsDbInstance() *schema.Resource {
|
|||
|
||||
"engine_version": &schema.Schema{
|
||||
Type: schema.TypeString,
|
||||
Required: true,
|
||||
Optional: true,
|
||||
Computed: true,
|
||||
},
|
||||
|
||||
"storage_encrypted": &schema.Schema{
|
||||
|
|
|
@ -31,8 +31,6 @@ func TestAccAWSDBInstance_basic(t *testing.T) {
|
|||
"aws_db_instance.bar", "allocated_storage", "10"),
|
||||
resource.TestCheckResourceAttr(
|
||||
"aws_db_instance.bar", "engine", "mysql"),
|
||||
resource.TestCheckResourceAttr(
|
||||
"aws_db_instance.bar", "engine_version", "5.6.21"),
|
||||
resource.TestCheckResourceAttr(
|
||||
"aws_db_instance.bar", "license_model", "general-public-license"),
|
||||
resource.TestCheckResourceAttr(
|
||||
|
@ -111,7 +109,7 @@ func testAccCheckAWSDBInstanceAttributes(v *rds.DBInstance) resource.TestCheckFu
|
|||
return fmt.Errorf("bad engine: %#v", *v.Engine)
|
||||
}
|
||||
|
||||
if *v.EngineVersion != "5.6.21" {
|
||||
if *v.EngineVersion == "" {
|
||||
return fmt.Errorf("bad engine_version: %#v", *v.EngineVersion)
|
||||
}
|
||||
|
||||
|
|
|
@ -36,7 +36,7 @@ The following arguments are supported:
|
|||
|
||||
* `allocated_storage` - (Required) The allocated storage in gigabytes.
|
||||
* `engine` - (Required) The database engine to use.
|
||||
* `engine_version` - (Required) The engine version to use.
|
||||
* `engine_version` - (Optional) The engine version to use.
|
||||
* `identifier` - (Required) The name of the RDS instance
|
||||
* `instance_class` - (Required) The instance type of the RDS instance.
|
||||
* `storage_type` - (Optional) One of "standard" (magnetic), "gp2" (general
|
||||
|
|
Loading…
Reference in New Issue