Skip to content

Releases: magodo/terraform-provider-restful

v0.17.0

29 Nov 07:00
1c77577
Compare
Choose a tag to compare

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 level header/query override (#114)

  • restful_resource : read_selector supports $(body) parameter (#122)

  • restful_[operation|resource: precheck_[update|delete] and poll_[create|update|delete] supports $(body) parameter for status_locator (#123)

  • restful_resource - Supports update_body_patches (#127)

v0.16.1

12 Aug 06:06
Compare
Choose a tag to compare

0.16.1 (Aug 12, 2024)

ENHANCEMENT

  • restful_operation - Hornor Content-Type header when constructing the request body (76ab171)

BUG FIX

  • Provider: Fix the incorrect handling of security.http.token.scheme (620c2fe)
  • Fix issue in resource validation on path builder (b021ba9)

v0.16.0

12 Aug 02:05
Compare
Choose a tag to compare

0.16.0 (Aug 12, 2024)

BREAKING CHANGES

  • Rework path builder to support more functions. The body pattern (i.e. body or body.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 of url_path function. (#107)

  • Moving the retry(_xxx) blocks from restful_resource and restful_operation to the provider retry block, with schema changes, as the previous resource level retry implementation is error-prone. (#112)

BUG FIXES

  • Fix resource body validation error when referencing a dynamic output from other resource (#113)
  • Fix the provider schema security.token.scheme (620c2fe)

v0.15.0

22 Jul 04:00
bd2e266
Compare
Choose a tag to compare

0.15.0 (Jul 22, 2024)

ENHANCEMENTS

  • restful_operation - Support id_builder for building resource id (#104)

v0.14.1

21 Jun 01:24
Compare
Choose a tag to compare

0.14.1 (Jun 21, 2024)

BUG FIXES

  • restful_operation - Supports output to be null (#100)

v0.14.0

22 May 02:57
773524f
Compare
Choose a tag to compare

0.14.0 (May 22, 2024)

BREAKING CHANGES

  • restful_resource - Change the type of body, output from string to dynamic (#87)
  • restful_resource - Read invoked from Create/Update now won't update the body (but still update the output). This makes those round trip inconsistent APIs won't cause error during the terraform apply, which makes the resource as tainted. Instead it will show the diff in the next terraform plan, which brings a chance for users to add the write_only_attrs/ignore_changes (#87)
  • restful_operation - Change the type of body, delete_body, output from string to dynamic (#87)
  • restful_resource data source - Change the type of output from string to dynamic (#87)

To migrate from versions earlier than v0.14.0, users expect to do the followings:

  1. If the body (or alike) is constructed by jsonencode function, then remove the jsonencode call
  2. If any reference of the output (or alike) is using jsondecode function, then remove the jsondecode call
  3. Do a terraform apply (even though no diff is detected), that terraform will migrate the state file for you

v0.13.3

21 May 02:07
0c98b21
Compare
Choose a tag to compare

0.13.3 (May 21, 2024)

ENHANCEMENTS

  • provider - Enable client API log (85f31b6)

BUF FIXES

  • restful_resource - [read|update_delete]_path builder pattern supports $(body) (#96, 0c98b21)

v0.13.2

16 May 03:20
Compare
Choose a tag to compare

0.13.2 (May 16, 2024)

BUF FIXES

  • Internal - Fix HeaderLocator always return true (b2d73fd )

v0.13.1

16 May 03:05
27efaf7
Compare
Choose a tag to compare

0.13.1 (May 16, 2024)

BUF FIXES

  • restful_resource - (read_)selector handle selected part is removed out-of-band (#94 )

v0.13.0

13 May 01:59
9c1c14e
Compare
Choose a tag to compare

0.13.0 (May 13, 2024)

ENHANCEMENTS

  • Provider: mTLS support (#82)
  • restful_resource - create_method supports PATCH (#86)
  • restful_resource - body supports being an array (#90)