Releases: magodo/terraform-provider-restful
Releases · magodo/terraform-provider-restful
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
v0.13.3
v0.13.2
v0.13.1
v0.13.0
v0.12.0
0.12.0 (Dec 4, 2023)
BREAKING CHANGES
restful_resource
&restful_operation
- Removequery
forpoll_xxx
block. During polling, the actual query used is either from the polling url_locator (as the polling URL is expected to contain the complete URL, including the query needed), or inherit from the originating request if url_locator not specified. (#73)restful_resource
- Updateimport_spec
to remove some unnecessary properties, and allowbody
to be optional (#71)
ENHANCEMENTS
restful_resource
data source: Supportprecheck
(#65)restful_resource
data source: Supportsmethod
forGET
,HEAD
and (read-only)POST
(#67)restful_resource
resource & data source: Extend theoutput_attrs
to support arrays (#70)restful_resouce
(res&ds) &restful_operation
: Supportretry(_(create|read|update|delete))
(#75)restful_operation
- Supportdelete_(method|body|path)
,(precheck|poll|retry)_delete
andoutput_attrs
(#79)
BUG FIXES