Created
June 29, 2021 16:55
-
-
Save YakDriver/9002223a44991ae747be10d5fbb9743d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
In Terraform provider development, if you were going to automate assigning characteristics of schema elements: | |
Check where element appears: | |
i = input (i.e., CreateObjectInput) | |
u = update (i.e., UpdateObjectInput) | |
o = output (i.e., DescribeObjectOutput) | |
This chart tells you when you need computed and forcenew. | |
//i without u is ForceNew | |
//o = computed=true forcenew=nil | |
//u = computed=nil forcenew=nil (strange) | |
//uo = computed=true forcenew=nil (strange) | |
//i = computed=nil forcenew=true | |
//io = computed=true forcenew=true | |
//iu = computed=nil forcenew=nil | |
//iuo = computed=true forcenew=nil |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment