Skip to content

Releases: port-labs/pulumi-port

v2.0.3

20 May 12:57
d03bde4
Compare
Choose a tag to compare

What's Changed

Full Changelog: v2.0.1...v2.0.3

v2.0.1

13 May 06:29
6790220
Compare
Choose a tag to compare

What's Changed

Full Changelog: v2.0.0...v2.0.1

v2.0.0

11 May 09:45
8d878dc
Compare
Choose a tag to compare

What's Changed

  • Changed the action resource to match the new action structure of Port's api (breaking change).

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.

For example, an action action defined in terraform with the provider version v1.x.x which looks like this:

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 change to this in terraform with the provider 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.` }}"
    })
  }
}

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.

v1.11.1

09 May 11:46
c0a6725
Compare
Choose a tag to compare

What's Changed

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

v1.11.0

08 May 16:14
af6a626
Compare
Choose a tag to compare

What's Changed

Breaking changes

  • Changed the Action Resource to support new action structure (control the payload - PR )

Full Changelog: v1.10.6...v1.11.0

v1.10.6

19 Apr 03:03
f092b02
Compare
Choose a tag to compare

Changelog

New Features

Bug fixes

Other work

v1.10.5

24 Mar 08:25
11e3be1
Compare
Choose a tag to compare

What's Changed

  • Upgrade terraform-provider-port-labs to v1.10.5 by @portmachineuser in #255
    • Upgraded terraform-provider-port-labs from 1.10.4 to 1.10.5.
    • Upgraded pulumi-terraform-bridge from v3.76.0 to v3.78.0.
    • Upgraded pulumi-terraform-bridge/pf from v0.29.0 to v0.31.0.

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

v1.10.4

06 Mar 15:10
f07f5f6
Compare
Choose a tag to compare

Changelog

Other work

v1.10.3

20 Feb 20:21
8161261
Compare
Choose a tag to compare

Changelog

Other work

v1.10.2

20 Feb 16:05
2a05287
Compare
Choose a tag to compare

Changelog

Bug fixes

Other work