Skip to content

Latest commit

 

History

History
49 lines (34 loc) · 1.16 KB

pacticipant.md

File metadata and controls

49 lines (34 loc) · 1.16 KB

Pacticipant Resource

This resource manages the lifecycle of a Pacticipant. A Pacticipant is an application that may perform the role of a consumer or a provider in the Pact ecosystem.

!> This resource is deprecated in favour of the pact_application resource.

Compatibility

-> This feature is available to both Pactflow and OSS users

Example Usage

The following examples show the basic usage of the resource.

resource "pact_pacticipant" "admin" {
  name = "AdminService"
  repository_url = "github.com/company/admin"
}

Argument Reference

The following arguments are supported:

  • name - (Required, string) The name of the Pacticipant.
  • repository_url - (Optional, string) A URL to the repository

Importing

As per the docs, the ID used for importingis simply the name of the Pacticipant.

  1. Create the shell for the pacticipant to be imported into:
resource "pact_pacticipant" "Wiffle" {
  name = "Wiffle"
  repository_url = "github.com/company/admin"
}
  1. Import the resource
terraform import pact_pacticipant.Wiffle Wiffle
  1. Apply any new changes
teraform apply