Skip to main content

Wizard

Build workflows either by using subscribed templates or by pulling configurations from a Git repository.

Step 1: Create a Workflow Group

  1. Navigate to Deployments > Workflow Groups and click Create Workflow Group.
Creating a Workflow Group

Creating a Workflow Group


Step 2: Initiate a New Workflow

  1. Open the Workflow Group you just created.
  2. Click Create Workflow, and select Use Wizard > Terraform.
Initiating a New Workflow

Initiating a New Workflow


Step 3: Choose the Source

Using an Activated Templates

  1. Search for and select the template.
Using an Activated Templates

Using an Activated Templates

Template Parameters

After selecting the template, configure the required parameters:

Template Parameters

Template Parameters

  • Key Name: Enter a name for the key pair (e.g., nginx-key).
  • Public Key: Provide the public key needed for the key pair. You can generate this key using tools like ssh-keygen. To configure, click the settings icon, create a reference for the public key using the secret option. "Select" the secret name stored in your Vault and click "Use".

  • Private Key Algorithm: Choose an algorithm for generating the private key, such as RSA or ED25519.
  • Private Key RSA Bits: Specify the size of the RSA key if using the RSA algorithm (default: 4096). Click Next to proceed.


Using a Git Repository

  1. Select Git Repository as the source type.
  2. Enter the Git Repository URL, e.g., https://github.com/StackGuardian/terraform-aws-vpc.
  3. Configure the following under Advanced Options:
    • Working Dir: Specify the directory containing your Terraform configurations (e.g., infra/aws).
    • Reference: Input a Git reference like a branch, tag, or commit (e.g., main or v1.0.0).
    • Git Sparse Checkout Config: Include/exclude specific paths during checkout.
    • Enable git core.autocrlf: Check if consistent line endings are required across operating systems.
  4. Provide Template Parameters (if needed) and click Next.
Using a Git Repository

Using a Git Repository


Step 4: Configure Runtime Environment

  1. Select a Deployment Environment and set up the necessary environment variables.
note

Refer to Environment Variables for a complete list.

  1. Choose the "Runner Type" (e.g., shared or dedicated) for flexibility and visibility.
  2. Enable additional "Terraform customizations" as per your requirements.
  3. Use "Advanced Options" for specifying Terraform versions, allocating resources for the workflow and setting schedules for automated runs.
tip

For guidance on generating a Cron expression for your execution schedule, refer to this documentation:
Creating Cron Expressions for Scheduled Events

note

Optionally, customize lifecycle steps using "Lifecycle Custom Steps" for advanced workflows. For more details, see Lifecycle Custom Steps.


Metadata, Review, and Launch

Update the workflow metadata and click Launch to execute the workflow.

Metadata, Review, and Launch

Metadata, Review, and Launch