-
Notifications
You must be signed in to change notification settings - Fork 9.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
core: ResourceProvider.ReadDataDiff method
In situations where data resource configuration is computed (and thus we can't read data during "refresh") we will defer ReadData until the "apply" phase, but during "plan" we still need to know which attributes are going to become available once we read. To achieve this using the pre-existing concepts, we represent the future data instance state as a diff for the "creation" of the data instance. The new provider method ReadDataDiff is responsible for producing this diff. Using a diff to represent this, while conceptually a little strange at first, allows us to effectively describe which attributes exist and which are computed, and to include this information in the plan result so that the user can see the full dependency graph for the apply phase.
- Loading branch information
1 parent
0c5bd0d
commit ce07201
Showing
4 changed files
with
84 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters