From ced61a9fdea9bb0d62fa2a1145772d3f063c6f4f Mon Sep 17 00:00:00 2001 From: Johannes Scheuerer Date: Mon, 18 Sep 2023 13:47:30 +0200 Subject: [PATCH] Update example_payload.jsonc --- .../terraform-cloud/example_payload.jsonc | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/transformer/terraform-cloud/example_payload.jsonc b/transformer/terraform-cloud/example_payload.jsonc index 030c1de..c3d1c5e 100644 --- a/transformer/terraform-cloud/example_payload.jsonc +++ b/transformer/terraform-cloud/example_payload.jsonc @@ -1,15 +1,9 @@ { - "ResourceName": "", // workspace name - "wfgrpName": "", // workflow group name - "Description": "", // workflow description - "Tags": [], // workflow tags - "EnvironmentVariables": [], // variables of category env - "Approvers": [], "CLIConfiguration": { "TfStateFilePath": "", // path to the state file "WorkflowGroup": { - "name": "" // workflowgroup name + "name": "" // workflowgroup name - will be created if it does not exist } }, "DeploymentPlatformConfig": [ @@ -21,6 +15,8 @@ } } ], + "Description": "", // workflow description + "EnvironmentVariables": [], // variables of category env "MiniSteps": { "notifications": { "email": { @@ -32,8 +28,9 @@ }, "wfChaining": { "COMPLETED": [], "ERRORED": [] } }, - - "RunnerConstraints": { "type": "" }, // type should be "shared" or "private" + "ResourceName": "", // workspace name + "RunnerConstraints": { "type": "" }, // type should be "shared" or "private" i.e. "RunnerConstraints": { "type": "private", "names":["runner-group-name"]} + "Tags": [], // workflow tags "TerraformConfig": { "managedTerraformState": true, // managed state from StackGuardian "terraformVersion": "1.1.6" // version of terraform @@ -44,11 +41,11 @@ "iacVCSConfig": { "customSource": { "config": { - "auth": "PLEASE PROVIDE A VALUE", // value corresponds to /secrets/ or /integrations/ + "auth": "PLEASE PROVIDE A VALUE", // value corresponds to /secrets/ or /integrations/ i.e. /integrations/github_com "includeSubModule": false, "isPrivate": true, // auth needs to be avaiable , if isPrivate is set to true "ref": "", - "repo": "", // full https path to the repository + "repo": "", // full https path to the repository i.e. https://github.com/StackGuardian/terraform-aws-vpc "workingDir": "" }, "sourceConfigDestKind": "PLEASE PROVIDE A VALUE" // value corresponds to "GITLAB_COM", "GITHUB_COM" , "BITBUCKET_ORG" OR "AZURE_DEVOPS"