hashicorp / terraform-plugin-go

A low-level Go binding for the Terraform protocol for integrations to be built on top of.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Document Private State Quirks

bflad opened this issue · comments

Does this documenation exist?

  • This is new documentation
  • This is an enhancement to existing documentation

Where would you expect to find this documentation?

  • On terraform.io
  • In the GoDoc for this module
  • In this repo as a markdown file
  • Somewhere else

Details

  • Private state must be preserved (if desired) between requests and responses, or its lost
  • Private state from the PlanResourceChange RPC is what is sent to the ApplyResourceChange RPC (this may be fairly obvious, but it'd be good to document it explicitly)