Skip to content

step-security/terraform-stepsecurity-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

StepSecurity Terraform Examples

This repository contains comprehensive examples and reusable modules for the StepSecurity Terraform Provider. It serves as the definitive resource for implementing StepSecurity's security features across various CI/CD platforms using Infrastructure as Code.

🚀 Quick Start

  1. Prerequisites: Ensure you have Terraform installed and StepSecurity account credentials
  2. Authentication: Set up your StepSecurity provider credentials
  3. Choose a resource: Select from our available resource examples
  4. Deploy: Run terraform commands to manage StepSecurity resources

📁 Repository Structure

terraform-stepsecurity-examples/
├── examples/             # Resource-specific examples
│   ├── gh-policy-driven-pr/        # Policy-driven PR examples
│   │   ├── main/                   # Basic example
│   │   └── README.md               # Resource overview
│   ├── gh-org-notification-settings/  # Notification settings examples
│   │   ├── main/                   # Basic example
│   │   └── README.md               # Resource overview
│   ├── user-management/            # User management examples
│   │   ├── main/                   # Basic example
│   │   └── README.md               # Resource overview
│   └── README.md                   # Examples overview
└── README.md                       # This file

💡 Examples

Available Resource Examples

Resource Description Primary Use Case
gh-policy-driven-pr Automated security remediation through policy-driven PRs Auto-remediate security findings with pull requests
gh-org-notification-settings GitHub organization notification settings Configure notifications for security findings
user-management User management with role-based access control Manage user permissions and access

Each resource directory contains:

  • main/: Basic working example with detailed README
  • README.md: Resource overview and available examples

🔐 Authentication

The StepSecurity provider requires authentication using API keys. Set up your credentials:

export STEP_SECURITY_API_KEY="your-api-key"
export STEP_SECURITY_CUSTOMER="your-customer-name"

Or configure directly in your Terraform:

provider "stepsecurity" {
  api_key  = var.stepsecurity_api_key
  customer = var.stepsecurity_customer
}

📚 Documentation

Each example includes comprehensive documentation:

  • Resource-specific README files with usage instructions
  • Terraform variable descriptions and examples
  • Output explanations and use cases

🏃‍♂️ Getting Started

  1. Clone the repository:

    git clone https://github.com/step-security/terraform-stepsecurity-examples.git
    cd terraform-stepsecurity-examples
  2. Set up authentication:

    export STEP_SECURITY_API_KEY="your-api-key"
    export STEP_SECURITY_CUSTOMER="your-customer-name"
  3. Choose an example:

    cd examples/gh-policy-driven-pr/main
    cp terraform.tfvars.example terraform.tfvars
    # Edit terraform.tfvars with your values
  4. Deploy:

    terraform init
    terraform plan
    terraform apply

🆘 Support

📈 Resources


About

Examples of using Terraform to manage step-security resources

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •