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.
-> This feature is available to both Pactflow and OSS users
The following examples show the basic usage of the resource.
resource "pact_pacticipant" "admin" {
name = "AdminService"
repository_url = "github.com/company/admin"
}
The following arguments are supported:
name
- (Required, string) The name of the Pacticipant.repository_url
- (Optional, string) A URL to the repository
As per the docs, the ID used for importingis simply the name of the Pacticipant.
- Create the shell for the pacticipant to be imported into:
resource "pact_pacticipant" "Wiffle" {
name = "Wiffle"
repository_url = "github.com/company/admin"
}
- Import the resource
terraform import pact_pacticipant.Wiffle Wiffle
- Apply any new changes
teraform apply