TFNFR35 - Reviewing Potential Breaking Changes
Potential breaking(surprise) changes introduced by resource
block
- Adding a new
resource
withoutcount
orfor_each
for conditional creation, or creating by default - Adding a new argument assignment with a value other than the default value provided by the provider’s schema
- Adding a new nested block without making it
dynamic
or omitting it by default - Renaming a
resource
block without one or more correspondingmoved
blocks - Change
resource
’scount
tofor_each
, or vice versa
Terraform moved
block
could be your cure.
Potential breaking changes introduced by variable
and output
blocks
- Deleting(Renaming) a
variable
- Changing
type
in avariable
block - Changing the
default
value in avariable
block - Changing
variable
’snullable
tofalse
- Changing
variable
’ssensitive
fromfalse
totrue
- Adding a new
variable
withoutdefault
- Deleting an
output
- Changing an
output
’svalue
- Changing an
output
’ssensitive
value
These changes do not necessarily trigger breaking changes, but they are very likely to, they MUST be reviewed with caution.