Skip to content
This repository was archived by the owner on Mar 30, 2026. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions other-providers/stackguardian/main.tf
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
resource "null_resource" "sg_integration" {
provisioner "local-exec" {
command = <<EOF
apk add curl
apk add jq
curl -o sg-cli https://raw.githubusercontent.com/StackGuardian/sg-cli/982af6d83e889c012d648cbf89896b9aa2f64695/shell/sg-cli
curl -o sg-cli https://raw.githubusercontent.com/StackGuardian/sg-cli/main/sg-cli
chmod +x sg-cli

./sg-cli stack create --org ${var.sg_organization} --workflow-group ${var.sg_workflow_group} --run --output-json --wait --patch-payload '{"ResourceName": "${var.customer_id}_${var.project_id}_${var.building_block_uuid}","TemplatesConfig": {"templates": [{"VCSConfig": {"iacInputData": {"schemaType": "RAW_JSON","data": {"sg_subscription_id": "${var.subscription_id}","sg_tenant_id": "${var.tenant_id}"}}}}]}}' -- payload.json > output.txt
Expand Down