Skip to content

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

v2.0.7

08 Jun 15:31
58f8e1b
Compare
Choose a tag to compare

What's Changed

Full Changelog: v2.0.5...v2.0.7

v2.0.6

06 Jun 11:49
58f8e1b
Compare
Choose a tag to compare

What's Changed

New Features

Bug Fixes

  • [CI] Upgrade goreleaser version and fix deprecated methods by @Tankilevitch in #156
  • Bump goreleaser.yaml to version 2 and change deprecated variables by @Tankilevitch in #157

Full Changelog: v2.0.5...v2.0.6

v2.0.5

04 Jun 14:40
Compare
Choose a tag to compare

What's Changed

Full Changelog: v2.0.4...v2.0.5

v2.0.4

03 Jun 11:40
77084cc
Compare
Choose a tag to compare

What's Changed

Full Changelog: v2.0.3...v2.0.4

v2.0.3

20 May 11:52
Compare
Choose a tag to compare

What's Changed

Full Changelog: v2.0.2...v2.0.3

v2.0.2

20 May 09:58
Compare
Choose a tag to compare

What's Changed

  • Update action and blueprints permissions documentation by @Tankilevitch in #146
  • Remove resource from state when resource doesn't exist by @erikzaadi in #148
  • fix: bug terraform cannot create entity without a relation even though the relation is not required by @talru1123 in #150
  • Remove sort logic from blueprint permissions, fix examples and docs by @erikzaadi in #149

New Contributors

Full Changelog: v2.0.1...v2.0.2

v2.0.1

12 May 14:26
Compare
Choose a tag to compare

What's Changed

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

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-…