Skip to content

Releases: port-labs/terraform-provider-port-labs

v2.0.0

09 May 12:06
Compare
Choose a tag to compare

What's Changed

Breaking changes

Changed the action resource to match the new action structure of Port's api

The change in the resource:

  • There is a new self_service_trigger attribute which is an object detailing all the values the action needs to trigger.
  • The trigger is renamed to operation and it has moved into the self_service_trigger object
  • The blueprint attribute is renamed to blueprint_identifier and it has moved into the self_service_trigger object (and its no longer a requirement)
  • The user_properties, order_properties and required_jq_query attributes have all moved from the root into the self_service_trigger object
  • The *_method attributes now support controlling the payload via jq. The new value should be the json from the invocationMethod variable as you can find it in the UI by editing an action's json. The specific attribute name would change between different invocation methods.

You can see the full specification for the new action resource the terraform docs.
Documentation for the new action structure can be found in Port docs.
For further help you can contact the Port team on our slack community.

For example, the following action as defined in version v1.x.x:

resource "port_action" "myAction" {
  title      = "My Action"
  blueprint  = port_blueprint.my_blueprint.identifier
  identifier = "myAction"
  trigger = "CREATE"
  required_approval = false
  gitlab_method = {
    group_name   = "myGroup"
    project_name = "myProj"
  }
  user_properties = {
    string_props = {
      myString = {
        title = "Prop"
      }
    }
    number_props = {
      myNumber = {
        "title" = "Prop"
      }
    }
  }
}

Would be defined as follows in version v2.x.x

resource "port_action" "myAction" {
  title      = "My Action"
  identifier = "myAction"
  self_service_trigger = {
    operation            = "CREATE"
    blueprint_identifier = port_blueprint.my_blueprint.identifier
    required_approval    = false
    user_properties = {
      string_props = {
        myString = {
          title = "Prop"
        }
      }
      number_props = {
        myNumber = {
          "title" = "Prop"
        }
      }
    }
  }
  gitlab_method = {
    group_name   = "myGroup"
    project_name = "myProj"
    workflowInputs = jsonencode({
      runId : "{{ .run.id }}"
      myString : "{{ .inputs.myString }}"
      myNumber : "{{ .inputs.` }}"
    })
  }
}

Contributed by @talsabagport in #140

Full Changelog: v1.11.1...v2.0.0

v1.11.1

09 May 11:17
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v1.11.0...v1.11.1

v1.11.0

08 May 13:49
1c4f3b7
Compare
Choose a tag to compare
Merge pull request #98 from port-labs/PORT-5367-update-iac-providers-…

v1.10.6

04 Apr 06:50
a21dd6c
Compare
Choose a tag to compare

What's Changed

  • change logo in README by @ozzs in #124
  • change logo in README (again) by @ozzs in #125
  • Generate new checksum

New Contributors

  • @ozzs made their first contribution in #124

Full Changelog: v1.10.5...v1.10.6

v1.10.5

21 Mar 11:53
e9cf5d5
Compare
Choose a tag to compare

What's Changed

  • fixed a bug wherein the provider failed to parse action-resource attributes if the attribute's value was conditional. by @pazhersh in #120

Full Changelog: v1.10.4...v1.10.5

v1.10.4

06 Mar 12:23
6898d74
Compare
Choose a tag to compare

What's Changed

  • Add support for dataset property in action under array properties (for string items) by @pazhersh in #118
  • Remove dataset from action-property schemas and models which do not support it (and never did) by @pazhersh in #118
  • Improved action resource docs by adding examples for the resource definition by @pazhersh in #118

Full Changelog: v1.10.3...v1.10.4

v1.10.3

20 Feb 18:52
8bfdf4d
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.10.2...v1.10.3

v1.10.2

20 Feb 13:14
e6c30b4
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.10.1...v1.10.2

v1.10.1

29 Jan 16:37
185f5fc
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.10.0...v1.10.1

v1.10.0

21 Jan 14:27
1947767
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.9.1...v1.10.0