terraform/plans/internal/planproto
Martin Atkins 51aeba2cf2 plans: Record provider config address in each resource change
This allows us to record the resource-to-provider associations we made
during the plan phase and ensure that we use the same config during
apply.

This isn't technically necessary, since we can in principle just repeat
the same matching algorithm against the config, but that algorithm is
relatively complicated and so if we execute it just once during plan we
remove the risk of bugs causing different decisions to be made during
the apply phase.

This also includes updates to the plan file format to include the provider
addresses. Since we've not actually shipped any version of Terraform
using our protobuf schema yet, we renumber here all of the fields after
the new one to keep them incrementing consecutively. This example should
not be followed after we have a released version of Terraform using this,
as a courtesy to anyone trying to parse these files (even though we're
not yet guaranteeing compatibility between releases).
2018-10-16 18:50:29 -07:00
..
doc.go plans/planfile: Reading and writing the new plan format 2018-10-16 18:50:29 -07:00
generate.go plans/planfile: Reading and writing the new plan format 2018-10-16 18:50:29 -07:00
planfile.pb.go plans: Record provider config address in each resource change 2018-10-16 18:50:29 -07:00
planfile.proto plans: Record provider config address in each resource change 2018-10-16 18:50:29 -07:00