You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A new `export` folder should have been created. The `sg-payload.json` file contains the definition for each workflow that will be created for each Terraform Workspace, and the `states` folder contains the files for the Terraform state for each of your workspaces, if the state export was enabled.
38
39
39
40
After completing the export , edit the `sg-payload.json` file to provide tune each workflow configuration with the following:
40
-
### Use the example_payload.jsonc file as a reference and edit the schema of the `sg-payload.json`
41
+
42
+
### Use the example_payload.jsonc file as a reference and edit the schema of the `sg-payload.json`
43
+
41
44
-`DeploymentPlatformConfig` - This is used to authenticate against a cloud provider using a StackGuardian Integration. Create the relevant integration in StackGuardian platform and update `DeploymentPlatformConfig.kind` from the following "AZURE_STATIC", "AWS_STATIC","GCP_STATIC", "AWS_RBAC". Update `DeploymentPlatformConfig.config.integrationId` with "/integrations/INTEGRATION_NAME" and `DeploymentPlatformConfig.config.profileName` with the name of the integration used upon creation.
45
+
42
46
```
43
47
DeploymentPlatformConfig: [
44
48
{
@@ -50,27 +54,27 @@ After completing the export , edit the `sg-payload.json` file to provide tune ea
50
54
}
51
55
]
52
56
```
57
+
53
58
-`VCSConfig` - Provide full path to the `repo` like as well the relevant `sourceConfigDestKind` from the following "GITHUB_COM", "BITBUCKET_ORG", "GITLAB_COM", "AZURE_DEVOPS"
54
-
-`config.auth`
55
-
-`config.isPrivate`
56
-
59
+
-`config.auth`
60
+
-`config.isPrivate`
57
61
-`ResourceName` - name of your StackGuardian Workflow
58
62
-`wfgrpName` - this corresponds to the labelling of workflow group name in the StackGuardian platform
59
63
-`Description` - description for the workflows created in the StackGuardian platform
60
-
-`Tags` - list of tags for the workflows created in the StackGuardian platform
64
+
-`Tags` - list of tags for the workflows created in the StackGuardian platform
61
65
-`EnvironmentVariables` - environment variables for the workflows created in the StackGuardian platform
62
66
-`RunnerConstraints` - Runner description for the workflows in the StackGuardian platform
63
-
- Private runners - ```
64
-
"RunnerConstraints": {
65
-
"type": "private",
66
-
"names": [
67
-
"sg-runner"
68
-
]
69
-
}```
70
-
- Shared runners - ```
71
-
"RunnerConstraints": {
72
-
"type": "shared"
73
-
}```
67
+
- Private runners - `
68
+
"RunnerConstraints": {
69
+
"type": "private",
70
+
"names": [
71
+
"sg-runner"
72
+
]
73
+
}`
74
+
- Shared runners - `
75
+
"RunnerConstraints": {
76
+
"type": "shared"
77
+
}`
74
78
-`Approvers` - Approvers for the workflow to run it successfully
75
79
-`TerraformConfig` - Terraform configuration for the workflows created in the StackGuardian platform
76
80
-`UserSchedules` - Scheduled workflow run configuration for the workflow in the StackGuardian platform
@@ -79,7 +83,7 @@ After completing the export , edit the `sg-payload.json` file to provide tune ea
79
83
### Bulk import workflows to StackGuardian Platform
80
84
81
85
- Fetch [sg-cli](https://github.com/StackGuardian/sg-cli.git) and set it up locally (documentation present in repo)
82
-
- Run the following commands and pass the `sg-payload.json` as payload (represented below)
86
+
- Run the following commands and pass the `sg-payload.json` as payload (represented belkkkkkkkkkkow)
83
87
- Get your SG API Key here: https://app.stackguardian.io/orchestrator/orgs/<ORG_ID>/settings?tab=api_key
if you want to update a workflow with different details, please re-run the sg-cli command with the modified sg-payload.json and your workflow will be updated with the new details, as long as the ResourceName (Workflow name) remains the same.
0 commit comments