Skip to content

Instantly share code, notes, and snippets.

@YakDriver
Created June 29, 2021 16:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save YakDriver/9002223a44991ae747be10d5fbb9743d to your computer and use it in GitHub Desktop.
Save YakDriver/9002223a44991ae747be10d5fbb9743d to your computer and use it in GitHub Desktop.
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