diff --git a/helper/diff/resource_builder.go b/helper/diff/resource_builder.go index 69a0e93ee..7fe565ac6 100644 --- a/helper/diff/resource_builder.go +++ b/helper/diff/resource_builder.go @@ -108,13 +108,6 @@ func (b *ResourceBuilder) Diff( Type: terraform.DiffAttrOutput, } } - - // The ID will change - attrs["id"] = &terraform.ResourceAttrDiff{ - Old: s.ID, - NewComputed: true, - Type: terraform.DiffAttrOutput, - } } // Build our resulting diff if we had attributes change diff --git a/helper/diff/resource_builder_test.go b/helper/diff/resource_builder_test.go index 1ac408b51..d62f674a3 100644 --- a/helper/diff/resource_builder_test.go +++ b/helper/diff/resource_builder_test.go @@ -202,22 +202,18 @@ const testRBComplexDiff = `UPDATE const testRBNewDiff = `UPDATE IN foo: "" => "bar" - OUT id: "" => "" OUT private_ip: "" => "" ` const testRBRequiresNewDiff = `CREATE IN ami: "foo" => "bar" (forces new resource) - OUT id: "1" => "" OUT private_ip: "127.0.0.1" => "" ` const testRBUnknownDiff = `UPDATE IN foo: "" => "${var.unknown}" - OUT id: "" => "" ` const testRBVarsDiff = `UPDATE IN foo: "" => "bar" - OUT id: "" => "" `