Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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