Releases: magodo/terraform-provider-restful
v0.17.0
0.17.0 (Nov 29, 2024)
ENHANCEMENT
-
Support ephemeral resource
restful_resource
(#129)Note: This requires
terraform
v1.10.0 or newer. -
restful_(resource|operation)
- Adds operation levelheader
/query
override (#114) -
restful_resource
:read_selector
supports$(body)
parameter (#122) -
restful_[operation|resource
:precheck_[update|delete]
andpoll_[create|update|delete]
supports$(body)
parameter forstatus_locator
(#123) -
restful_resource
- Supportsupdate_body_patches
(#127)
v0.16.1
v0.16.0
0.16.0 (Aug 12, 2024)
BREAKING CHANGES
-
Rework path builder to support more functions. The body pattern (i.e.
body
orbody.x
) now can add a chain of functions (applied from left to right), in form of$f1.f2(body.x)
. Removed the#(...)
pattern in favor ofurl_path
function. (#107) -
Moving the
retry(_xxx)
blocks fromrestful_resource
andrestful_operation
to the providerretry
block, with schema changes, as the previous resource level retry implementation is error-prone. (#112)
BUG FIXES
v0.15.0
v0.14.1
v0.14.0
0.14.0 (May 22, 2024)
BREAKING CHANGES
restful_resource
- Change the type ofbody
,output
from string to dynamic (#87)restful_resource
-Read
invoked fromCreate
/Update
now won't update thebody
(but still update theoutput
). This makes those round trip inconsistent APIs won't cause error during theterraform apply
, which makes the resource as tainted. Instead it will show the diff in the nextterraform plan
, which brings a chance for users to add thewrite_only_attrs
/ignore_changes
(#87)restful_operation
- Change the type ofbody
,delete_body
,output
from string to dynamic (#87)restful_resource
data source - Change the type ofoutput
from string to dynamic (#87)
To migrate from versions earlier than v0.14.0, users expect to do the followings:
- If the
body
(or alike) is constructed byjsonencode
function, then remove thejsonencode
call - If any reference of the
output
(or alike) is usingjsondecode
function, then remove thejsondecode
call - Do a
terraform apply
(even though no diff is detected), that terraform will migrate the state file for you