Skip to content

Amazon S3 Integration

Note

DRACO tests a new integration right after creating it and removes it again when the test fails; the form stays open with the vendor's message.

DRACO exports scan results to an Amazon S3 bucket after each scan, in csv, html and json-ocsf formats, plus a CSV per compliance framework.

Note

Enabling this integration incurs costs in Amazon S3. Refer to Amazon S3 pricing for more information.

The Amazon S3 Integration provides the following capabilities:

  • Automate scan result exports to designated S3 buckets after each scan
  • Configure separate bucket destinations for different cloud providers or use cases
  • Customize export paths within buckets for organized storage
  • Authenticate with access keys, optionally assuming an IAM role in your account
  • Verify connection reliability through built-in connection testing
  • Manage integrations independently with separate configuration and credential controls

Required Permissions

Before configuring the Amazon S3 Integration, make sure the IAM user whose access keys you enter (or the IAM role it assumes) may write scan results to the designated S3 bucket. Use a dedicated IAM user with only these permissions, not the keys of an administrator. The export does not use the credentials of your AWS provider.

IAM Policy

The S3 integration requires the following permissions. Add these to the IAM role policy, or ensure AWS credentials have these permissions:

s3:DeleteObject
{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Condition": {
                "StringEquals": {
                    "s3:ResourceAccount": "<BUCKET AWS ACCOUNT NUMBER>"
                }
            },
            "Action": [
                "s3:DeleteObject"
            ],
            "Resource": [
                "arn:aws:s3:::<BUCKET NAME>/*test-draco-connection.txt"
            ],
            "Effect": "Allow"
        }
    ]
}

s3:DeleteObject permission is required for connection testing. When testing the S3 integration, DRACO creates a temporary beacon file, test-draco-connection.txt, to verify write permissions, then deletes it to confirm the connection is working properly.

s3:PutObject
{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Condition": {
                "StringEquals": {
                    "s3:ResourceAccount": "<BUCKET AWS ACCOUNT NUMBER>"
                }
            },
            "Action": [
                "s3:PutObject"
            ],
            "Resource": [
                "arn:aws:s3:::<BUCKET NAME>/*"
            ],
            "Effect": "Allow"
        }
    ]
}
s3:ListBucket
{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Condition": {
                "StringEquals": {
                    "s3:ResourceAccount": "<BUCKET AWS ACCOUNT NUMBER>"
                }
            },
            "Action": [
                "s3:ListBucket"
            ],
            "Resource": [
                "arn:aws:s3:::<BUCKET NAME>"
            ],
            "Effect": "Allow"
        }
    ]
}

Note

Replace <BUCKET AWS ACCOUNT NUMBER> with the AWS account ID that owns the destination S3 bucket, and <BUCKET NAME> with the actual bucket name.

Cross-Account S3 Bucket

If the S3 destination bucket is in a different AWS account than the one providing the credentials for S3 access, configure a bucket policy on the destination bucket to allow cross-account access.

The three common scenarios:

Same Account Setup (No Bucket Policy Required)

When both the IAM credentials and destination S3 bucket are in the same AWS account, no additional bucket policy is required.

Cross-Account Setup (Bucket Policy Required)

When the S3 bucket is in a different AWS account, you must configure a bucket policy to allow cross-account access.

Multi-Account Setup (Multiple Principals in Bucket Policy)

When multiple AWS accounts need to write to the same destination bucket, configure the bucket policy with multiple principals.

S3 Bucket Policy

Apply the following bucket policy to the destination S3 bucket:

{
  "Version": "2012-10-17",
  "Statement": [
      {
          "Effect": "Allow",
          "Principal": {
              "AWS": "<PRINCIPAL ARN>"
          },
          "Action": "s3:PutObject",
          "Resource": "arn:aws:s3:::<BUCKET NAME>/*"
      },
      {
          "Effect": "Allow",
          "Principal": {
              "AWS": "<PRINCIPAL ARN>"
          },
          "Action": "s3:DeleteObject",
          "Resource": "arn:aws:s3:::<BUCKET NAME>/*test-draco-connection.txt"
      },
       {
          "Effect": "Allow",
          "Principal": {
              "AWS": "<PRINCIPAL ARN>"
          },
          "Action": "s3:ListBucket",
          "Resource": "arn:aws:s3:::<BUCKET NAME>"
      }
  ]
}

Note

Replace <PRINCIPAL ARN> with the ARN of the IAM user whose keys DRACO uses (for example arn:aws:iam::<SOURCE ACCOUNT ID>:user/draco-s3-export), or of the IAM role it assumes, and <BUCKET NAME> with the destination bucket name.

Multi-Account Configuration

For multiple AWS accounts, modify the Principal field to an array:

"Principal": {
    "AWS": [
        "<PRINCIPAL ARN 1>",
        "<PRINCIPAL ARN 2>"
    ]
}

Configuration

Once the required permissions are set up, proceed to configure the S3 integration in DRACO.

  1. Open Connectors and open the AWS account's connector

  2. Click Add a part and, under Responders, tick Notifications (Amazon S3)

  3. Complete the configuration form with the following details:

    • Providers: Select the providers whose scan results should be exported to this S3 bucket
    • Bucket name: Enter the name of the target S3 bucket (e.g., my-security-findings-bucket)
    • Output directory: Specify the directory path within the bucket (defaults to output)
    • Bucket owner account ID: the AWS account that owns the bucket; leave it empty to use the account of the selected AWS provider
  4. Click Next to configure credentials

  5. Enter the AWS Access Key ID and AWS Secret Access Key of the IAM user (the AWS Session Token is only for temporary credentials, which expire within hours)

  6. Optional: select Optionally add a role to have DRACO assume an IAM role in your account with those keys:

    • Role ARN: The Amazon Resource Name of the IAM role
    • External ID: filled in by DRACO (your organization ID) and not editable; the role's trust policy must require it
    • Role Session Name and Session Duration: optional
  7. Click Create Integration to verify the connection and complete the setup

Success

Once credentials are configured and the connection test passes, the S3 integration will be active. Scan results will automatically be exported to the specified bucket after each scan completes. Run a new scan and check the S3 bucket to verify the integration is working.

Note

Scan outputs are processed after scan completion. Depending on scan size and network conditions, exports may take a few minutes to appear in the S3 bucket.


Integration Status

Once the integration is active, monitor its status and make adjustments as needed through the integrations management interface.

  1. Review configured integrations in the management interface
  2. Each integration displays:

    • Connection Status: Connected or Disconnected indicator
    • Bucket Information: Bucket name and output directory
    • Last Checked: Timestamp of the most recent connection test

Actions

Each S3 integration provides several management actions accessible through dedicated buttons:

Button Purpose Available Actions Notes
Test Verify integration connectivity • Test AWS credential validity
• Check S3 bucket accessibility
• Verify write permissions
• Validate connection setup
Results displayed in notification message
Config Modify integration settings • Update selected cloud providers
• Change bucket name
• Modify output directory path
Click Update to save changes
Credentials Update authentication settings • Modify AWS access keys
• Update IAM role configuration
Click Update to save changes
Enable/Disable Toggle integration status • Enable integration to start exporting results
• Disable integration to pause exports
Status change takes effect immediately
Delete Remove integration permanently • Permanently delete integration
• Remove all configuration data
⚠️ Cannot be undone - confirm before deleting

Tip

Management Best Practices

  • Test the integration after any configuration changes
  • Use the Enable/Disable toggle for temporary changes instead of deleting

Understanding S3 Export Structure

When the S3 integration is enabled and a scan completes, DRACO creates a folder inside the specified bucket path (using output as the default folder name) with subfolders for each output format:

  • Regular: draco-output-{provider-uid}-{timestamp}.{extension}
  • Compliance: draco-output-{provider-uid}-{timestamp}_{compliance_framework}.{extension}
output/
├── compliance/
│   └── draco-output-111122223333-20250805120000_cis_5.0_aws.csv
├── csv/
│   └── draco-output-111122223333-20250805120000.csv
├── html/
│   └── draco-output-111122223333-20250805120000.html
└── json-ocsf/
    └── draco-output-111122223333-20250805120000.ocsf.json

Troubleshooting

Connection test fails:

  • Check AWS credentials are valid
  • If using IAM Role, check its permissions
  • Verify bucket permissions and region
  • Confirm network access to S3

No scan results in bucket:

  • Ensure integration shows "Connected"
  • Check that provider is associated with integration
  • Verify bucket policies allow writes