diff --git a/README.md b/README.md index 0c86200..fbd1397 100644 --- a/README.md +++ b/README.md @@ -40,13 +40,13 @@ After completing the export , edit the `sg-payload.json` file to provide tune ea ### Use the example_payload.jsonc file as a reference and edit the schema of the `sg-payload.json` - `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. ``` - DeploymentPlatformConfig: { + DeploymentPlatformConfig: [ "kind": "AWS_RBAC", "config": { "integrationId": "/integrations/aws-rbac", "profileName": "default" } - } + ] ``` - `VCSConfig` - Provide full path to the `repo` like as well the relevant `sourceConfigDestKind` from the following "GITHUB_COM", "BITBUCKET_ORG", "GITLAB_COM", "AZURE_DEVOPS" - `config.auth` diff --git a/miscl/sg.jsonc b/miscl/sg.jsonc deleted file mode 100644 index e69de29..0000000 diff --git a/miscl/sg_payload.json b/miscl/sg_payload.json deleted file mode 100644 index a54fc7a..0000000 --- a/miscl/sg_payload.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "tfstate": "location of state file", - "ResourceName": "Test", - "wfgrpName": "Firstworkflow", - "Description": "test to send to Firas", - "Tags": [], - "EnvironmentVariables": [], - "DeploymentPlatformConfig": [ - { - - "kind": "AZURE_STATIC", - "config": { - "integrationId": "/integrations/azure", - "profileName": "azure" - } - } - ], - "RunnerConstraints": { - "type": "shared" - }, - "VCSConfig": { - "iacVCSConfig": { - "useMarketplaceTemplate": false, - "customSource": { - "sourceConfigDestKind": "GITLAB_COM", - "config": { - "includeSubModule": false, - "ref": "", - "isPrivate": true, - "auth": "/integrations/test-gitlab-akshat", - "workingDir": "", - "repo": "https://gitlab.com/arunim.chaudhary/terraform-azurerm-vnet" - } - } - }, - "iacInputData": { - "schemaType": "RAW_JSON", - "data": { - "test": "ee" - } - } - }, - "MiniSteps": { - "wfChaining": { - "ERRORED": [], - "COMPLETED": [] - }, - "notifications": { - "email": { - "ERRORED": [], - "COMPLETED": [], - "APPROVAL_REQUIRED": [], - "CANCELLED": [] - } - } - }, - "Approvers": [], - "TerraformConfig": { - "managedTerraformState": true, - "terraformVersion": "1.4.6" - }, - "WfType": "TERRAFORM", - "UserSchedules": [] -} diff --git a/miscl/sg_payload.jsonc b/miscl/sg_payload.jsonc deleted file mode 100644 index 4ae7b36..0000000 --- a/miscl/sg_payload.jsonc +++ /dev/null @@ -1,66 +0,0 @@ -{ - "tfstate": "location of state file", - "ResourceName": "Test", // workspace name - "wfgrpName": "Firstworkflow", // project name (if project ), user should provide ( need example for project in payload) - "Description": "test to send to Firas", // workspace description - "Tags": [], // workspace tags - "EnvironmentVariables": [], // variables of category env - "DeploymentPlatformConfig": [ - { - // provided by user - "kind": "AZURE_STATIC", - "config": { - "integrationId": "/integrations/azure", - "profileName": "azure" - } - } - ], - "RunnerConstraints": { - "type": "shared" - }, - "VCSConfig": { - "iacVCSConfig": { - "useMarketplaceTemplate": false, - "customSource": { - "sourceConfigDestKind": "GITLAB_COM", // user provided - "config": { - "includeSubModule": false, - "ref": "", - "isPrivate": true, - "auth": "/integrations/test-gitlab-akshat", - "workingDir": "", - "repo": "https://gitlab.com/arunim.chaudhary/terraform-azurerm-vnet" - } - } - }, - "iacInputData": { - "schemaType": "RAW_JSON", - "data": { - "test": "ee" - } - } - }, - "MiniSteps": { - "wfChaining": { - // user provided - "ERRORED": [], - "COMPLETED": [] - }, - "notifications": { - // user provided - "email": { - "ERRORED": [], - "COMPLETED": [], - "APPROVAL_REQUIRED": [], - "CANCELLED": [] - } - } - }, - "Approvers": [], - "TerraformConfig": { - "managedTerraformState": true, - "terraformVersion": "1.4.6" - }, - "WfType": "TERRAFORM", - "UserSchedules": [] // user provided -} diff --git a/transformer/tfc/terraform.tfvars b/transformer/tfc/terraform.tfvars deleted file mode 100644 index 82159f5..0000000 --- a/transformer/tfc/terraform.tfvars +++ /dev/null @@ -1,14 +0,0 @@ -# Terraform Cloud/Enterprise organization name -tfc_organization = "test-123433" - -# List of TFC/TFE workspace names to export. Wildcards are supported (e.g., ["*"], ["*-example"], ["example-*"]). -tfc_workspace_names = ["*"] - -# List of TFC/TFE workspace tags to include when exporting. Excluded tags take precedence over included ones. Wildcards are not supported. -# tfc_workspace_include_tags = ["example"] - -# List of TFC/TFE workspace tags to exclude when exporting. Excluded tags take precedence over included ones. Wildcards are not supported. -# tfc_workspace_exclude_tags = ["ignore"] - -# Export Terraform state to files? -export_state = true