Toranj.ai

AWS Integration

Integrate Toranj with Amazon Web Services

Overview

Toranj integrates seamlessly with AWS services including CodeBuild, CodePipeline, and other DevOps tools to provide continuous security scanning and monitoring for your applications.

Automated Scanning

Continuous security scans on every build

Secure Integration

IAM roles and secure credential management

Detailed Reports

Comprehensive security reports and insights

Prerequisites

Requirements before setting up the AWS integration

AWS Account

Active AWS account with appropriate permissions

Toranj API Key

API key from your Toranj dashboard

IAM Permissions

CodeBuild and CodePipeline permissions

Source Repository

GitHub, CodeCommit, or other supported repo

IAM Policy Setup

Create the necessary IAM policy for Toranj integration

toranj-aws-policy.json
{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": [
        "codebuild:BatchGetProjects",
        "codebuild:CreateProject",
        "codebuild:StartBuild",
        "codebuild:BatchGetBuilds",
        "codepipeline:CreatePipeline",
        "codepipeline:GetPipeline",
        "codepipeline:StartPipelineExecution",
        "s3:GetObject",
        "s3:PutObject",
        "logs:CreateLogGroup",
        "logs:CreateLogStream",
        "logs:PutLogEvents"
      ],
      "Resource": "*"
    }
  ]
}

Setup Steps:

  1. Navigate to AWS IAM Console
  2. Create a new policy using the JSON above
  3. Name the policy "ToranjIntegrationPolicy"
  4. Create a new role for CodeBuild
  5. Attach the policy to the role