Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 774 Bytes

resource_secret.html.markdown

File metadata and controls

24 lines (17 loc) · 774 Bytes

Secret Resource

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

NOTE: this is currently only supported for the Pactflow.io platform.

Example Usage

The following examples show the basic usage of the resource.

resource "pact_secret" "some_jenkins_token" {
  name = "JenkinsToken"
  description = "A token for jenkins webhooks"
  value = "super secret thing"
}

Argument Reference

The following arguments are supported:

  • name - (Required, string) The name of the Secret (alphanumeric characters only)
  • description - (Required, string) A human readable description of the Secret.
  • value - (Required, string) The actual secret to store.